From f3efaea3e2ddf3ad2b8b8274400052428756479e 2017-01-08 16:41:05 From: Srinivas Reddy Thatiparthy Date: 2017-01-08 16:41:05 Subject: [PATCH] remove dead code --- diff --git a/IPython/core/interactiveshell.py b/IPython/core/interactiveshell.py index 7c07e26..22f6a56 100644 --- a/IPython/core/interactiveshell.py +++ b/IPython/core/interactiveshell.py @@ -1382,14 +1382,6 @@ class InteractiveShell(SingletonConfigurable): found = False; obj = None; ospace = None; ismagic = False; isalias = False; parent = None - # We need to special-case 'print', which as of python2.6 registers as a - # function but should only be treated as one if print_function was - # loaded with a future import. In this case, just bail. - if (oname == 'print' and not py3compat.PY3 and not \ - (self.compile.compiler_flags & __future__.CO_FUTURE_PRINT_FUNCTION)): - return {'found':found, 'obj':obj, 'namespace':ospace, - 'ismagic':ismagic, 'isalias':isalias, 'parent':parent} - # Look for the given name by splitting it in parts. If the head is # found, then we look for all the remaining parts as members, and only # declare success if we can find them all.