Show More
@@ -293,7 +293,13 b' def _get_mro(obj_class):' | |||
|
293 | 293 | """ |
|
294 | 294 | if not hasattr(obj_class, '__mro__'): |
|
295 | 295 | # Old-style class. Mix in object to make a fake new-style class. |
|
296 | try: | |
|
296 | 297 | obj_class = type(obj_class.__name__, (obj_class, object), {}) |
|
298 | except TypeError: | |
|
299 | # Old-style extension type that does not descend from object. | |
|
300 | # FIXME: try to construct a more thorough MRO. | |
|
301 | mro = [obj_class] | |
|
302 | else: | |
|
297 | 303 | mro = obj_class.__mro__[1:-1] |
|
298 | 304 | else: |
|
299 | 305 | mro = obj_class.__mro__ |
General Comments 0
You need to be logged in to leave comments.
Login now