← Back to DAGDA | Support | Source: https://mail.python.org/pipermail/python-porting/2014-July/000442.html

[Python-porting] python-future: scripts generate unwanted output

Guido van Rossum guido at python.org
Sat Jul 26 16:51:04 CEST 2014


I suggest that you contact the authors and maintainers of futurize. From
the message logged it looks to me as if the conversion is happening
manually on each run rather than converting the source once and committing
the converted source. (The second set of messages are logged by the parser
generator that is part of lib2to3 in the standard library; the first set is
apparently from the futurize package.)


On Fri, Jul 25, 2014 at 1:21 AM, Eric Firing <efiring.ocean at gmail.com>
wrote:

> I have used futurize plus some manual fixup in an ongoing attempt to port
> a package.  Some of it is now working on both Python 2 and 3, but although
> scripts work correctly, they begin by spewing an enormous number of lines
> like:
>
> Detecting hooks ...
> Not detected.
> Uninstalling hooks ...
> Not removing future.types.newobject
> Not removing future.types.newdict
> Not removing future.types.math
> Not removing future.builtins.newnext
>
> ...
>
> and/or
>
> Generating grammar tables from /usr/lib/python3.4/lib2to3/Grammar.txt
> Generating grammar tables from /usr/lib/python3.4/lib2to3/
> PatternGrammar.txt
> Adding transformation: division
> Generating grammar tables from /usr/lib/python3.4/lib2to3/
> PatternGrammar.txt
> Generating grammar tables from /usr/lib/python3.4/lib2to3/
> PatternGrammar.txt
> Adding transformation: print_with_import
>
> Why is this happening, and how can I suppress it?  Is it related to use of
> the logging module?
>
> Eric
> _______________________________________________
> Python-porting mailing list
> Python-porting at python.org
> https://mail.python.org/mailman/listinfo/python-porting
>



-- 
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-porting/attachments/20140726/cca189a8/attachment.html>


More information about the Python-porting mailing list