[New-bugs-announce] [issue28039] x86 Tiger buildbot needs __future__ with_statement

Martin Panter report at bugs.python.org
Fri Sep 9 03:54:01 EDT 2016

New submission from Martin Panter:

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:

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.

components: Build
keywords: buildbot
messages: 275282
nosy: gregory.p.smith, martin.panter
priority: normal
severity: normal
status: open
title: x86 Tiger buildbot needs __future__ with_statement
type: compile error
versions: Python 3.6

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list