python 3.2 works now

This commit is contained in:
Michael Greene
2014-08-10 01:54:12 -07:00
parent ca886fc049
commit 5ba1095ec0
10 changed files with 77 additions and 118 deletions

View File

@@ -67,6 +67,10 @@ class TypedProperty(property):
return type(self)(self.fget, self.fset, self.fdel, self.__doc__, **cur_setters)
# this fixes some python 2.7/3.2 shenanigans
if item == '__isabstractmethod__':
raise AttributeError(item)
if item in self.__dict__ or item in ['fset', 'fget', 'fdel', '__doc__']:
return self.__dict__[item]