##// END OF EJS Templates
Deprecate only if not None passed as formatter.
Matthias Bussonnier -
Show More
@@ -694,7 +694,8 b' class Inspector(Colorable):'
694 def info(self, obj, oname='', formatter=None, info=None, detail_level=0):
694 def info(self, obj, oname='', formatter=None, info=None, detail_level=0):
695 """DEPRECATED. Compute a dict with detailed information about an object.
695 """DEPRECATED. Compute a dict with detailed information about an object.
696 """
696 """
697 warnings.warn('Inspector.info is deprecated as of IPython 5.0',
697 if formatter is not None:
698 warnings.warn('Inspector.info(formatter) keyword is deprecated as of IPython 5.0 and will have no effects.',
698 DeprecationWarning, stacklevel=2)
699 DeprecationWarning, stacklevel=2)
699 return self._info(obj, oname=oname, info=info, detail_level=detail_level)
700 return self._info(obj, oname=oname, info=info, detail_level=detail_level)
700
701
General Comments 0
You need to be logged in to leave comments. Login now