]> granicus.if.org Git - python/commitdiff
Remove legacy "from __future__ import with_statement" lines.
authorGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org>
Thu, 8 Sep 2016 20:47:41 +0000 (13:47 -0700)
committerGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org>
Thu, 8 Sep 2016 20:47:41 +0000 (13:47 -0700)
Doc/tools/rstlint.py
Lib/lib2to3/refactor.py
Lib/lib2to3/tests/test_parser.py
Lib/lib2to3/tests/test_pytree.py
Lib/lib2to3/tests/test_refactor.py
Tools/gdb/libpython.py
Tools/hg/hgtouch.py
Tools/pybench/With.py
Tools/scripts/generate_opcode_h.py

index de78041f77c9ee1853e0793a8e7f48e1074ae0c8..2c1816eedf925c327a173bafa4893a76caa76a3a 100755 (executable)
@@ -9,8 +9,6 @@
 # TODO: - wrong versions in versionadded/changed
 #       - wrong markup after versionchanged directive
 
-from __future__ import with_statement
-
 import os
 import re
 import sys
index b60b9def4d07c484fa9bc64b38c220498c6d5ee3..c5a1aa2d0cc423c1789d08d65e6917e0cdf1f460 100644 (file)
@@ -8,8 +8,6 @@ recursively descend down directories.  Imported as a module, this
 provides infrastructure to write your own refactoring tool.
 """
 
-from __future__ import with_statement
-
 __author__ = "Guido van Rossum <guido@python.org>"
 
 
index 7fc5537edda9e22b140d3b0e1f9ea2771c66efb7..9adb0317fae8d8356f5b14ef5e55afb726865694 100644 (file)
@@ -6,8 +6,6 @@ parts of the grammar we've changed, we also make sure we can parse the
 test_grammar.py files from both Python 2 and Python 3.
 """
 
-from __future__ import with_statement
-
 # Testing imports
 from . import support
 from .support import driver
index a611d1715ec1f9e2581323d70d5d9a0cd889aad3..177126d545291049cf5402aefe5a58f1fc837624 100644 (file)
@@ -9,8 +9,6 @@ more helpful than printing of (the first line of) the docstring,
 especially when debugging a test.
 """
 
-from __future__ import with_statement
-
 # Testing imports
 from . import support
 
index 94dc135fac235aa1717515019146998ec55ffba3..e9bae5e45d0136f984801c07718f66b4f759e756 100644 (file)
@@ -2,8 +2,6 @@
 Unit tests for refactor.py.
 """
 
-from __future__ import with_statement
-
 import sys
 import os
 import codecs
index 75f1ccbd442d8d90616ed2e63148baaa5df8b604..3e95b4441d8a33faa02f003622fb4a9a1b71067a 100755 (executable)
@@ -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
index 119d81214826f62d812a8b923432da783d321859..fbca469ba94c25ec02b9c50581667fab720e2578 100644 (file)
@@ -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
index 5f59e8c05b67f0bb54d72a67f8af87a439358621..30cd3c2c8a530f258b2e16a521ef705d84be1fc1 100644 (file)
@@ -1,4 +1,3 @@
-from __future__ import with_statement
 from pybench import Test
 
 class WithFinally(Test):
index c62f9a5b2301ebec33feb50ab16ecb17d4708438..948b56f9007e93a55a3296d7d584abcef4bd6b9a 100644 (file)
@@ -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