]> granicus.if.org Git - python/commitdiff
remove unused imports (closes #12432)
authorBenjamin Peterson <benjamin@python.org>
Tue, 28 Jun 2011 15:25:04 +0000 (10:25 -0500)
committerBenjamin Peterson <benjamin@python.org>
Tue, 28 Jun 2011 15:25:04 +0000 (10:25 -0500)
A patch from Vincent Legoll.

Lib/binhex.py
Lib/cgitb.py
Lib/contextlib.py
Lib/glob.py
Lib/inspect.py
Lib/textwrap.py
Lib/turtle.py

index 999a675513347e2c87e9d507cb31ef3b2477dacd..7bf9278430fbfa71fa6ad4da6e9bf6efb4f74869 100644 (file)
@@ -23,7 +23,6 @@ hexbin(inputfilename, outputfilename)
 #
 import io
 import os
-import sys
 import struct
 import binascii
 
index 7b52c8e74c1e78f3f705007ab6ce71bfabdc0598..e3ce2cb9d6dfd1d2077146690a0af9be80c6cdb6 100644 (file)
@@ -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."""
index 5ebbbc6583839d62ebfaac2577973a5f6772d3af..2f8f00d2964c241d58fe7de53ee083f88f4d209d 100644 (file)
@@ -2,7 +2,6 @@
 
 import sys
 from functools import wraps
-from warnings import warn
 
 __all__ = ["contextmanager", "closing", "ContextDecorator"]
 
index 36d493d7a8032656ce49e1531ab1e9508564220d..c5f5f69b2d96100b566ef42dc9eb0965947c9505 100644 (file)
@@ -1,5 +1,6 @@
 """Filename globbing utility."""
 
+import sys
 import os
 import re
 import fnmatch
index 80802e41815a2c42bab40af153f368c6815b55bf..9898b114aae6c2be1819a90cb8b187728d5de56b 100644 (file)
@@ -33,7 +33,6 @@ import sys
 import os
 import types
 import itertools
-import string
 import re
 import imp
 import tokenize
index f4886a12779c54368157c57adf47a36bd28eaa2e..f014cb0cf3d30b2b6e196afbf45aee33767e223e 100644 (file)
@@ -7,7 +7,7 @@
 
 __revision__ = "$Id$"
 
-import string, re
+import re
 
 __all__ = ['TextWrapper', 'wrap', 'fill', 'dedent']
 
index 2ff54278e2f9c33a1322a829d985159d4a6b0eca..a0c9ae6c0cb701cc035787a5674c0565d9f3d5b0 100644 (file)
@@ -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