##// END OF EJS Templates
Merge pull request #8778 from SylvainCorlay/Meta...
Min RK -
r21631:3ac9be53 merge
parent child Browse files
Show More
@@ -32,7 +32,7 b' from IPython.utils.ipstruct import Struct'
32 32 from IPython.utils.process import arg_split
33 33 from IPython.utils.py3compat import string_types, iteritems
34 34 from IPython.utils.text import dedent
35 from traitlets import Bool, Dict, Instance, MetaHasTraits
35 from traitlets import Bool, Dict, Instance
36 36 from IPython.utils.warn import error
37 37
38 38 #-----------------------------------------------------------------------------
@@ -386,7 +386,7 b' class MagicsManager(Configurable):'
386 386 if not m.registered:
387 387 raise ValueError("Class of magics %r was constructed without "
388 388 "the @register_magics class decorator")
389 if type(m) in (type, MetaHasTraits):
389 if isinstance(m, type):
390 390 # If we're given an uninstantiated class
391 391 m = m(shell=self.shell)
392 392
General Comments 0
You need to be logged in to leave comments. Login now