J. D. Bartlett <j...@bartletts.id.au> added the comment:

Incidentally, the workaround that I'm using for the time being is to run the 
following code before attempting to compile root_node.

for node in ast.walk(root_node):
    if isinstance(node, ast.ImportFrom) and node.module == '__future__':
        node.module = '__future__'

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14378>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to