Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use inspect.getmro in CannedClass

  • Loading branch information...
commit 5fbfc7a62cf0e02a21620c6c3e35b4cd6c666e19 1 parent 96df8a4
@minrk authored
Showing with 2 additions and 5 deletions.
  1. +2 −5 IPython/utils/pickleutil.py
View
7 IPython/utils/pickleutil.py
@@ -16,6 +16,7 @@
#-------------------------------------------------------------------------------
import copy
+import inspect
import logging
import sys
from types import FunctionType
@@ -124,11 +125,7 @@ def __init__(self, cls):
for k,v in cls.__dict__.items():
if k not in ('__weakref__', '__dict__'):
self._canned_dict[k] = can(v)
- if self.old_style:
- mro = []
- else:
- mro = cls.mro()
-
+ mro = inspect.getmro(cls)
self.parents = [ can(c) for c in mro[1:] ]
self.buffers = []
Please sign in to comment.
Something went wrong with that request. Please try again.