Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 274271d

Browse files
committed
remove unused imports (closes #12432)
A patch from Vincent Legoll.
1 parent e4a51e6 commit 274271d

7 files changed

Lines changed: 2 additions & 6 deletions

File tree

Lib/binhex.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#
2424
import io
2525
import os
26-
import sys
2726
import struct
2827
import binascii
2928

Lib/cgitb.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
import time
3232
import tokenize
3333
import traceback
34-
import types
3534

3635
def reset():
3736
"""Return a string that resets the CGI and browser to a known state."""

Lib/contextlib.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import sys
44
from functools import wraps
5-
from warnings import warn
65

76
__all__ = ["contextmanager", "closing", "ContextDecorator"]
87

Lib/glob.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Filename globbing utility."""
22

3+
import sys
34
import os
45
import re
56
import fnmatch

Lib/inspect.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
import os
3434
import types
3535
import itertools
36-
import string
3736
import re
3837
import imp
3938
import tokenize

Lib/textwrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
__revision__ = "$Id$"
99

10-
import string, re
10+
import re
1111

1212
__all__ = ['TextWrapper', 'wrap', 'fill', 'dedent']
1313

Lib/turtle.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@
108108
import types
109109
import math
110110
import time
111-
import os
112111
import inspect
113112

114113
from os.path import isfile, split, join

0 commit comments

Comments
 (0)