This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients gregory.p.smith, martin.panter
Date 2016-09-09.07:54:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473407641.18.0.0923940651973.issue28039@psf.upfronthosting.co.za>
In-reply-to
Content
Revision 7eaaac5ad4e8 removed a bunch of “with_statement” __future__ imports, including in Tools/hg/hgtouch.py. This is causing a buildbot to fail; presumably it has Python < 2.6 for Mercurial:

http://buildbot.python.org/all/builders/x86%20Tiger%203.x/builds/11301/steps/touch/logs/stdio
Tools/hg/hgtouch.py:22: Warning: 'with' will become a reserved keyword in Python 2.6
*** failed to import extension touch from Tools/hg/hgtouch.py: invalid syntax (hgtouch.py, line 22)
hg: unknown command 'touch'

The compile step subsequently seems to regenerate a file and fails.

What was the reason to remove these __future__ imports? Maybe only remove them from Python 3-only code.
History
Date User Action Args
2016-09-09 07:54:01martin.pantersetrecipients: + martin.panter, gregory.p.smith
2016-09-09 07:54:01martin.pantersetmessageid: <1473407641.18.0.0923940651973.issue28039@psf.upfronthosting.co.za>
2016-09-09 07:54:01martin.panterlinkissue28039 messages
2016-09-09 07:54:00martin.pantercreate