diff --git a/IPython/core/interactiveshell.py b/IPython/core/interactiveshell.py index 51c625c5dd9..dc131b1272b 100644 --- a/IPython/core/interactiveshell.py +++ b/IPython/core/interactiveshell.py @@ -1198,9 +1198,8 @@ def object_inspect(self, oname): if info.found: return self.inspector.info(info.obj, oname, info=info) else: - return oinspect.mk_object_info({'name' : oname, - 'found' : False}) - + return oinspect.object_info(name=oname, found=False) + #------------------------------------------------------------------------- # Things related to history management #-------------------------------------------------------------------------