mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Remove legacy "from __future__ import with_statement" lines.
This commit is contained in:
parent
18a7d2b455
commit
a68c1bca7b
9 changed files with 1 additions and 15 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
from __future__ import with_statement
|
||||
from pybench import Test
|
||||
|
||||
class WithFinally(Test):
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue