Skip to content

Commit ee0522e

Browse files
committed
Apply Christopher Arndt's newsuper fix for PyQt subclasses (issue #160)
1 parent d1d2ae7 commit ee0522e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/future/builtins/newsuper.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def newsuper(typ=_SENTINEL, type_or_obj=_SENTINEL, framedepth=1):
6262
try:
6363
# Get the MRO so we can crawl it.
6464
mro = type_or_obj.__mro__
65-
except AttributeError:
65+
except (AttributeError, RuntimeError): # see issue #160
6666
try:
6767
mro = type_or_obj.__class__.__mro__
6868
except AttributeError:

0 commit comments

Comments
 (0)