summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org>2016-09-08 20:47:41 (GMT)
committerGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org>2016-09-08 20:47:41 (GMT)
commita68c1bca7bd35571dd1bab736fd69452eca8394e (patch)
treeae3988fac9148839a46d00b40ff32288af062d59 /Tools
parent18a7d2b4555af5f8f8a1c370339e334503b1ec09 (diff)
downloadcpython-a68c1bca7bd35571dd1bab736fd69452eca8394e.zip
cpython-a68c1bca7bd35571dd1bab736fd69452eca8394e.tar.gz
cpython-a68c1bca7bd35571dd1bab736fd69452eca8394e.tar.bz2
Remove legacy "from __future__ import with_statement" lines.
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/gdb/libpython.py2
-rw-r--r--Tools/hg/hgtouch.py1
-rw-r--r--Tools/pybench/With.py1
-rw-r--r--Tools/scripts/generate_opcode_h.py2
4 files changed, 1 insertions, 5 deletions
diff --git a/Tools/gdb/libpython.py b/Tools/gdb/libpython.py
index 75f1ccb..3e95b44 100755
--- a/Tools/gdb/libpython.py
+++ b/Tools/gdb/libpython.py
@@ -44,7 +44,7 @@ The module also extends gdb with some python-specific commands.
# NOTE: some gdbs are linked with Python 3, so this file should be dual-syntax
# compatible (2.6+ and 3.0+). See #19308.
-from __future__ import print_function, with_statement
+from __future__ import print_function
import gdb
import os
import locale
diff --git a/Tools/hg/hgtouch.py b/Tools/hg/hgtouch.py
index 119d812..fbca469 100644
--- a/Tools/hg/hgtouch.py
+++ b/Tools/hg/hgtouch.py
@@ -7,7 +7,6 @@ syntax of make rules.
In addition to the dependency syntax, #-comments are supported.
"""
-from __future__ import with_statement
import errno
import os
import time
diff --git a/Tools/pybench/With.py b/Tools/pybench/With.py
index 5f59e8c..30cd3c2 100644
--- a/Tools/pybench/With.py
+++ b/Tools/pybench/With.py
@@ -1,4 +1,3 @@
-from __future__ import with_statement
from pybench import Test
class WithFinally(Test):
diff --git a/Tools/scripts/generate_opcode_h.py b/Tools/scripts/generate_opcode_h.py
index c62f9a5..948b56f 100644
--- a/Tools/scripts/generate_opcode_h.py
+++ b/Tools/scripts/generate_opcode_h.py
@@ -1,7 +1,5 @@
# This script generates the opcode.h header file.
-from __future__ import with_statement
-
import sys
header = """/* Auto-generated by Tools/scripts/generate_opcode_h.py */
#ifndef Py_OPCODE_H