diff options
author | Benjamin Peterson <benjamin@python.org> | 2011-06-28 15:25:04 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2011-06-28 15:25:04 (GMT) |
commit | 274271d1ae71dbd1177b54a5def45fed3ecb501f (patch) | |
tree | 50020b9d4c3b3922ce72f5c41b61c4fc969d822e /Lib | |
parent | e4a51e6543e18a004735e75344009b832134db6e (diff) | |
download | cpython-274271d1ae71dbd1177b54a5def45fed3ecb501f.zip cpython-274271d1ae71dbd1177b54a5def45fed3ecb501f.tar.gz cpython-274271d1ae71dbd1177b54a5def45fed3ecb501f.tar.bz2 |
remove unused imports (closes #12432)
A patch from Vincent Legoll.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/binhex.py | 1 | ||||
-rw-r--r-- | Lib/cgitb.py | 1 | ||||
-rw-r--r-- | Lib/contextlib.py | 1 | ||||
-rw-r--r-- | Lib/glob.py | 1 | ||||
-rw-r--r-- | Lib/inspect.py | 1 | ||||
-rw-r--r-- | Lib/textwrap.py | 2 | ||||
-rw-r--r-- | Lib/turtle.py | 1 |
7 files changed, 2 insertions, 6 deletions
diff --git a/Lib/binhex.py b/Lib/binhex.py index 999a675..7bf9278 100644 --- a/Lib/binhex.py +++ b/Lib/binhex.py @@ -23,7 +23,6 @@ hexbin(inputfilename, outputfilename) # import io import os -import sys import struct import binascii diff --git a/Lib/cgitb.py b/Lib/cgitb.py index 7b52c8e..e3ce2cb 100644 --- a/Lib/cgitb.py +++ b/Lib/cgitb.py @@ -31,7 +31,6 @@ import tempfile import time import tokenize import traceback -import types def reset(): """Return a string that resets the CGI and browser to a known state.""" diff --git a/Lib/contextlib.py b/Lib/contextlib.py index 5ebbbc6..2f8f00d 100644 --- a/Lib/contextlib.py +++ b/Lib/contextlib.py @@ -2,7 +2,6 @@ import sys from functools import wraps -from warnings import warn __all__ = ["contextmanager", "closing", "ContextDecorator"] diff --git a/Lib/glob.py b/Lib/glob.py index 36d493d..c5f5f69 100644 --- a/Lib/glob.py +++ b/Lib/glob.py @@ -1,5 +1,6 @@ """Filename globbing utility.""" +import sys import os import re import fnmatch diff --git a/Lib/inspect.py b/Lib/inspect.py index 80802e4..9898b11 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py @@ -33,7 +33,6 @@ import sys import os import types import itertools -import string import re import imp import tokenize diff --git a/Lib/textwrap.py b/Lib/textwrap.py index f4886a1..f014cb0 100644 --- a/Lib/textwrap.py +++ b/Lib/textwrap.py @@ -7,7 +7,7 @@ __revision__ = "$Id$" -import string, re +import re __all__ = ['TextWrapper', 'wrap', 'fill', 'dedent'] diff --git a/Lib/turtle.py b/Lib/turtle.py index 2ff5427..a0c9ae6 100644 --- a/Lib/turtle.py +++ b/Lib/turtle.py @@ -108,7 +108,6 @@ import tkinter as TK import types import math import time -import os import inspect from os.path import isfile, split, join |