Show More
@@ -1382,14 +1382,6 b' class InteractiveShell(SingletonConfigurable):' | |||||
1382 | found = False; obj = None; ospace = None; |
|
1382 | found = False; obj = None; ospace = None; | |
1383 | ismagic = False; isalias = False; parent = None |
|
1383 | ismagic = False; isalias = False; parent = None | |
1384 |
|
1384 | |||
1385 | # We need to special-case 'print', which as of python2.6 registers as a |
|
|||
1386 | # function but should only be treated as one if print_function was |
|
|||
1387 | # loaded with a future import. In this case, just bail. |
|
|||
1388 | if (oname == 'print' and not py3compat.PY3 and not \ |
|
|||
1389 | (self.compile.compiler_flags & __future__.CO_FUTURE_PRINT_FUNCTION)): |
|
|||
1390 | return {'found':found, 'obj':obj, 'namespace':ospace, |
|
|||
1391 | 'ismagic':ismagic, 'isalias':isalias, 'parent':parent} |
|
|||
1392 |
|
||||
1393 | # Look for the given name by splitting it in parts. If the head is |
|
1385 | # Look for the given name by splitting it in parts. If the head is | |
1394 | # found, then we look for all the remaining parts as members, and only |
|
1386 | # found, then we look for all the remaining parts as members, and only | |
1395 | # declare success if we can find them all. |
|
1387 | # declare success if we can find them all. |
General Comments 0
You need to be logged in to leave comments.
Login now