In LineInfo.ofind(), when ifun is "print", check if the compiler has
recorded the "from __future__ import print_function":
import __future__
def ofind(self, ip):
...
if self.ifunc == 'print':
if not ip.shell.compile.compiler.flags &
__future__.CO_FUTURE_PRINT_FUNCTION:
return {'found': False, 'obj': None, ...}
...
--
print statements get incorrectly mangled by the autocall feature under Python
2.6
https://bugs.launchpad.net/bugs/414967
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs