Skip to content

Commit

Permalink
under Python 3 get is a simply function and not an unbound method
Browse files Browse the repository at this point in the history
this might actually hint at a bigger problem
  • Loading branch information
hannosch committed May 4, 2013
1 parent 9f63428 commit ea7e62e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ExtensionClass/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ def pmc_init_of(cls):
cls.__get__ = of_get
else:
get = getattr(cls, '__get__', None)
if get is not None and get.im_func is of_get:
if (get is not None and
(get is of_get or getattr(get, '__func__', None) is of_get)):
del cls.__get__


Expand Down

0 comments on commit ea7e62e

Please sign in to comment.