Remove legacy "from __future__ import with_statement" lines.
This commit is contained in:
parent
18a7d2b455
commit
a68c1bca7b
|
@ -9,8 +9,6 @@
|
||||||
# TODO: - wrong versions in versionadded/changed
|
# TODO: - wrong versions in versionadded/changed
|
||||||
# - wrong markup after versionchanged directive
|
# - wrong markup after versionchanged directive
|
||||||
|
|
||||||
from __future__ import with_statement
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -8,8 +8,6 @@ recursively descend down directories. Imported as a module, this
|
||||||
provides infrastructure to write your own refactoring tool.
|
provides infrastructure to write your own refactoring tool.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import with_statement
|
|
||||||
|
|
||||||
__author__ = "Guido van Rossum <guido@python.org>"
|
__author__ = "Guido van Rossum <guido@python.org>"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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.
|
test_grammar.py files from both Python 2 and Python 3.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import with_statement
|
|
||||||
|
|
||||||
# Testing imports
|
# Testing imports
|
||||||
from . import support
|
from . import support
|
||||||
from .support import driver
|
from .support import driver
|
||||||
|
|
|
@ -9,8 +9,6 @@ more helpful than printing of (the first line of) the docstring,
|
||||||
especially when debugging a test.
|
especially when debugging a test.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import with_statement
|
|
||||||
|
|
||||||
# Testing imports
|
# Testing imports
|
||||||
from . import support
|
from . import support
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
Unit tests for refactor.py.
|
Unit tests for refactor.py.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import with_statement
|
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
import codecs
|
import codecs
|
||||||
|
|
|
@ -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
|
# NOTE: some gdbs are linked with Python 3, so this file should be dual-syntax
|
||||||
# compatible (2.6+ and 3.0+). See #19308.
|
# compatible (2.6+ and 3.0+). See #19308.
|
||||||
|
|
||||||
from __future__ import print_function, with_statement
|
from __future__ import print_function
|
||||||
import gdb
|
import gdb
|
||||||
import os
|
import os
|
||||||
import locale
|
import locale
|
||||||
|
|
|
@ -7,7 +7,6 @@ syntax of make rules.
|
||||||
|
|
||||||
In addition to the dependency syntax, #-comments are supported.
|
In addition to the dependency syntax, #-comments are supported.
|
||||||
"""
|
"""
|
||||||
from __future__ import with_statement
|
|
||||||
import errno
|
import errno
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
from __future__ import with_statement
|
|
||||||
from pybench import Test
|
from pybench import Test
|
||||||
|
|
||||||
class WithFinally(Test):
|
class WithFinally(Test):
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
# This script generates the opcode.h header file.
|
# This script generates the opcode.h header file.
|
||||||
|
|
||||||
from __future__ import with_statement
|
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
header = """/* Auto-generated by Tools/scripts/generate_opcode_h.py */
|
header = """/* Auto-generated by Tools/scripts/generate_opcode_h.py */
|
||||||
#ifndef Py_OPCODE_H
|
#ifndef Py_OPCODE_H
|
||||||
|
|
Loading…
Reference in New Issue