Skip to content

Commit

Permalink
use inspect.getmro in CannedClass
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed Jan 13, 2013
1 parent 96df8a4 commit 5fbfc7a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions IPython/utils/pickleutil.py
Expand Up @@ -16,6 +16,7 @@
#-------------------------------------------------------------------------------

import copy
import inspect
import logging
import sys
from types import FunctionType
Expand Down Expand Up @@ -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 = []

Expand Down

0 comments on commit 5fbfc7a

Please sign in to comment.