From 274271d1ae71dbd1177b54a5def45fed3ecb501f Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 28 Jun 2011 10:25:04 -0500 Subject: remove unused imports (closes #12432) A patch from Vincent Legoll. --- Lib/binhex.py | 1 - Lib/cgitb.py | 1 - Lib/contextlib.py | 1 - Lib/glob.py | 1 + Lib/inspect.py | 1 - Lib/textwrap.py | 2 +- 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 -- cgit v0.12