remove unused imports (closes #12432)
A patch from Vincent Legoll.
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 @@
#
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 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 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 types
import math
import time
-import os
import inspect
from os.path import isfile, split, join