]> granicus.if.org Git - python/commitdiff
Patch #2167 from calvin: Remove unused imports
authorChristian Heimes <christian@cheimes.de>
Sat, 23 Feb 2008 17:40:11 +0000 (17:40 +0000)
committerChristian Heimes <christian@cheimes.de>
Sat, 23 Feb 2008 17:40:11 +0000 (17:40 +0000)
203 files changed:
Lib/SimpleHTTPServer.py
Lib/bsddb/test/test_basics.py
Lib/bsddb/test/test_compat.py
Lib/bsddb/test/test_cursor_pget_bug.py
Lib/bsddb/test/test_dbobj.py
Lib/bsddb/test/test_dbshelve.py
Lib/bsddb/test/test_dbtables.py
Lib/bsddb/test/test_env_close.py
Lib/bsddb/test/test_get_none.py
Lib/bsddb/test/test_join.py
Lib/bsddb/test/test_lock.py
Lib/bsddb/test/test_misc.py
Lib/bsddb/test/test_pickle.py
Lib/bsddb/test/test_queue.py
Lib/bsddb/test/test_recno.py
Lib/bsddb/test/test_sequence.py
Lib/bsddb/test/test_thread.py
Lib/compiler/transformer.py
Lib/ctypes/test/__init__.py
Lib/ctypes/test/test_checkretval.py
Lib/ctypes/test/test_find.py
Lib/ctypes/test/test_libc.py
Lib/ctypes/test/test_loading.py
Lib/ctypes/test/test_numbers.py
Lib/curses/wrapper.py
Lib/distutils/bcppcompiler.py
Lib/distutils/command/bdist.py
Lib/distutils/command/bdist_dumb.py
Lib/distutils/command/bdist_msi.py
Lib/distutils/command/bdist_rpm.py
Lib/distutils/command/build_py.py
Lib/distutils/command/build_scripts.py
Lib/distutils/command/install.py
Lib/distutils/command/install_headers.py
Lib/distutils/command/install_lib.py
Lib/distutils/command/register.py
Lib/distutils/command/sdist.py
Lib/distutils/filelist.py
Lib/distutils/tests/test_dist.py
Lib/distutils/tests/test_sysconfig.py
Lib/distutils/unixccompiler.py
Lib/email/base64mime.py
Lib/email/utils.py
Lib/hotshot/log.py
Lib/hotshot/stones.py
Lib/httplib.py
Lib/idlelib/MultiCall.py
Lib/idlelib/RemoteDebugger.py
Lib/idlelib/TreeWidget.py
Lib/idlelib/UndoDelegator.py
Lib/idlelib/configDialog.py
Lib/idlelib/keybindingDialog.py
Lib/idlelib/run.py
Lib/lib-tk/tkSimpleDialog.py
Lib/logging/handlers.py
Lib/ntpath.py
Lib/plat-mac/MiniAEFrame.py
Lib/plat-mac/aepack.py
Lib/plat-mac/bgenlocations.py
Lib/plat-mac/macostools.py
Lib/plat-riscos/rourl2path.py
Lib/sqlite3/test/hooks.py
Lib/ssl.py
Lib/test/fork_wait.py
Lib/test/list_tests.py
Lib/test/seq_tests.py
Lib/test/test_MimeWriter.py
Lib/test/test___all__.py
Lib/test/test_abc.py
Lib/test/test_applesingle.py
Lib/test/test_array.py
Lib/test/test_bsddb185.py
Lib/test/test_class.py
Lib/test/test_cmd.py
Lib/test/test_coercion.py
Lib/test/test_compare.py
Lib/test/test_compiler.py
Lib/test/test_copy.py
Lib/test/test_cpickle.py
Lib/test/test_datetime.py
Lib/test/test_dbm.py
Lib/test/test_deque.py
Lib/test/test_dict.py
Lib/test/test_dis.py
Lib/test/test_doctest.py
Lib/test/test_dummy_threading.py
Lib/test/test_email.py
Lib/test/test_email_renamed.py
Lib/test/test_eof.py
Lib/test/test_extcall.py
Lib/test/test_fileinput.py
Lib/test/test_fractions.py
Lib/test/test_getargs2.py
Lib/test/test_gzip.py
Lib/test/test_htmlparser.py
Lib/test/test_httplib.py
Lib/test/test_imgfile.py
Lib/test/test_imp.py
Lib/test/test_index.py
Lib/test/test_linuxaudiodev.py
Lib/test/test_list.py
Lib/test/test_logging.py
Lib/test/test_minidom.py
Lib/test/test_module.py
Lib/test/test_modulefinder.py
Lib/test/test_multibytecodec_support.py
Lib/test/test_optparse.py
Lib/test/test_ossaudiodev.py
Lib/test/test_pickle.py
Lib/test/test_pkg.py
Lib/test/test_plistlib.py
Lib/test/test_poll.py
Lib/test/test_posix.py
Lib/test/test_pyclbr.py
Lib/test/test_quopri.py
Lib/test/test_resource.py
Lib/test/test_rfc822.py
Lib/test/test_scriptpackages.py
Lib/test/test_sgmllib.py
Lib/test/test_shlex.py
Lib/test/test_site.py
Lib/test/test_socketserver.py
Lib/test/test_sqlite.py
Lib/test/test_str.py
Lib/test/test_strftime.py
Lib/test/test_sunaudiodev.py
Lib/test/test_support.py
Lib/test/test_tuple.py
Lib/test/test_unicode.py
Lib/test/test_unpack.py
Lib/test/test_urllib.py
Lib/test/test_urllib2.py
Lib/test/test_urllib2_localnet.py
Lib/test/test_userdict.py
Lib/test/test_userlist.py
Lib/test/test_userstring.py
Lib/test/test_uu.py
Lib/test/test_whichdb.py
Lib/test/test_xml_etree.py
Lib/test/test_xml_etree_c.py
Lib/test/test_xpickle.py
Lib/test/test_zipfile64.py
Mac/Demo/PICTbrowse/ICONbrowse.py
Mac/Demo/PICTbrowse/PICTbrowse.py
Mac/Demo/PICTbrowse/PICTbrowse2.py
Mac/Demo/PICTbrowse/cicnbrowse.py
Mac/Demo/PICTbrowse/oldPICTbrowse.py
Mac/Demo/example1/dnslookup-1.py
Mac/Demo/example2/dnslookup-2.py
Mac/Demo/imgbrowse/imgbrowse.py
Mac/Demo/imgbrowse/mac_image.py
Mac/Demo/sound/morse.py
Mac/Modules/ae/aescan.py
Mac/Modules/ah/ahscan.py
Mac/Modules/app/appscan.py
Mac/Modules/carbonevt/CarbonEvtscan.py
Mac/Modules/cf/cfscan.py
Mac/Modules/cg/cgscan.py
Mac/Modules/cm/cmscan.py
Mac/Modules/ctl/ctlscan.py
Mac/Modules/dlg/dlgscan.py
Mac/Modules/drag/dragscan.py
Mac/Modules/evt/evtscan.py
Mac/Modules/file/filescan.py
Mac/Modules/fm/fmscan.py
Mac/Modules/folder/folderscan.py
Mac/Modules/help/helpscan.py
Mac/Modules/ibcarbon/IBCarbonscan.py
Mac/Modules/icn/icnscan.py
Mac/Modules/launch/launchscan.py
Mac/Modules/list/listscan.py
Mac/Modules/menu/menuscan.py
Mac/Modules/mlte/mltescan.py
Mac/Modules/osa/osascan.py
Mac/Modules/qd/qdscan.py
Mac/Modules/qdoffs/qdoffsscan.py
Mac/Modules/qt/qtscan.py
Mac/Modules/res/resscan.py
Mac/Modules/scrap/scrapscan.py
Mac/Modules/snd/sndscan.py
Mac/Modules/te/tescan.py
Mac/Modules/win/winscan.py
Misc/BeOS-setup.py
PC/VS8.0/build_tkinter.py
PCbuild/build_tkinter.py
Parser/asdl_c.py
Parser/spark.py
Tools/compiler/astgen.py
Tools/compiler/dumppyc.py
Tools/faqwiz/faqw.py
Tools/modulator/Tkextra.py
Tools/pybench/systimes.py
Tools/pynche/ChipViewer.py
Tools/pynche/TypeinViewer.py
Tools/scripts/logmerge.py
Tools/scripts/nm2def.py
Tools/scripts/pindent.py
Tools/scripts/pysource.py
Tools/scripts/xxci.py
Tools/ssl/get-remote-certificate.py
Tools/unicode/gencodec.py
Tools/webchecker/wcgui.py
Tools/webchecker/wsgui.py

index 249e237fb7c0cf9050f4cd7fd6e5350149db235f..7b6e8679af761a48ab2d074adfb27f4a952d12c6 100644 (file)
@@ -14,7 +14,6 @@ import os
 import posixpath
 import BaseHTTPServer
 import urllib
-import urlparse
 import cgi
 import shutil
 import mimetypes
index c027ada74a16c0931536c3255d3b76eb88772342..6d0fff15e43a3b98e261193842a69de6e3f34396 100644 (file)
@@ -4,7 +4,6 @@ various DB flags, etc.
 """
 
 import os
-import sys
 import errno
 import shutil
 import string
index b108db4c6a90225af3c4d7c7752282801092dd7d..bc165cfbefb7b5a1d16e4bd9b16b0daeacadeb91 100644 (file)
@@ -3,7 +3,7 @@ Test cases adapted from the test_bsddb.py module in Python's
 regression test suite.
 """
 
-import sys, os, string
+import os, string
 import unittest
 import tempfile
 
index 2f72b1155b2b19a22461202734b466c3069a70a5..2e83a6cb1c83e4ea030f37ecc263965459da9ab9 100644 (file)
@@ -1,6 +1,6 @@
 import unittest
 import tempfile
-import sys, os, glob
+import os, glob
 
 try:
     # For Pythons w/distutils pybsddb
index 6086d77f72bb9922146caa7f2655bf29525c8d87..dd9909d6d2d5813b85ca5d6212094b41b08708ba 100644 (file)
@@ -1,5 +1,5 @@
 
-import sys, os, string
+import os, string
 import unittest
 import glob
 import tempfile
index ddc05d5d4dd48ed750efbe0d4e0c6c37cf9ac8b0..bd399a431acd100089969ea994bcf5b0e24a7af0 100644 (file)
@@ -2,9 +2,8 @@
 TestCases for checking dbShelve objects.
 """
 
-import sys, os, string
+import os, string
 import tempfile, random
-from pprint import pprint
 from types import *
 import unittest
 
index 3a401e36828003adb6006bcae564f460e14b7a13..0c9cf5fffa6a96de6f5633951af801c76bc7ba3f 100644 (file)
@@ -20,7 +20,7 @@
 #
 # $Id$
 
-import sys, os, re
+import os, re
 import tempfile
 import shutil
 try:
index 5738febe0efa1d3123454ceb407f1859f69cf8f4..efc3460f7971e1f32bc947c967b758740d924b70 100644 (file)
@@ -3,7 +3,6 @@ is closed before its DB objects.
 """
 
 import os
-import sys
 import tempfile
 import glob
 import unittest
index 5f09cecc6a39c6982954977b3c2c82e5b5418e55..d6454cc736e77a51bcfde975e4edadc397c4498d 100644 (file)
@@ -2,9 +2,8 @@
 TestCases for checking set_get_returns_none.
 """
 
-import sys, os, string
+import os, string
 import tempfile
-from pprint import pprint
 import unittest
 
 try:
index 731f33a4202a98cc4e54a1a336ac0e136a8c50dd..26c29124a7b4e1c56cf78355d980047edf766300 100644 (file)
@@ -1,10 +1,8 @@
 """TestCases for using the DB.join and DBCursor.join_item methods.
 """
 
-import sys, os, string
+import os
 import tempfile
-import time
-from pprint import pprint
 
 try:
     from threading import Thread, currentThread
index e0d831f76287c4ee09317a4e0f73db9f07e05a5e..18469a19c2d351f0622963081d6763ac9cc97bb3 100644 (file)
@@ -2,10 +2,7 @@
 TestCases for testing the locking sub-system.
 """
 
-import os
-from pprint import pprint
 import shutil
-import sys
 import tempfile
 import time
 
index ef9c0aa8b6956bc0921433aa715890b8534da76c..3d566f10a9f98f21922c4fb98468de410b855363 100644 (file)
@@ -2,7 +2,6 @@
 """
 
 import os
-import sys
 import unittest
 import tempfile
 
index ef84a4097f88a0fa141a587e8a3e025c53bc109e..b87cc689ec1462fb788a887e9844c9d789bec7af 100644 (file)
@@ -1,5 +1,5 @@
 
-import sys, os, string
+import os
 import pickle
 try:
     import cPickle
index 95cf20d0d2bb35a85eff7ec4545a9861ad046f43..1acf35a91ff5359803f48bf509ddc0ecc527fd9d 100644 (file)
@@ -2,7 +2,7 @@
 TestCases for exercising a Queue DB.
 """
 
-import sys, os, string
+import os, string
 import tempfile
 from pprint import pprint
 import unittest
index 4b36a40a02746b84d815887e6891cffd21de044e..9630db19d026b6c235f206c37997e0f13e25e783 100644 (file)
@@ -2,7 +2,6 @@
 """
 
 import os
-import sys
 import errno
 import tempfile
 from pprint import pprint
index 239e8ee13fafe2f7ed8d3b101786401909ad3bab..d7029e5cff5f81f9e4c64c9a1b3fa6102002c27e 100644 (file)
@@ -1,6 +1,5 @@
 import unittest
 import os
-import sys
 import tempfile
 import glob
 
@@ -10,8 +9,6 @@ try:
 except ImportError:
     from bsddb import db
 
-from test_all import verbose
-
 
 class DBSequenceTest(unittest.TestCase):
     def setUp(self):
index 9c87db4abe2b76a84b0281ae9ee08140df9821f2..d14f6da1fa0c63078fac95714e30fe6e408423a7 100644 (file)
@@ -7,7 +7,6 @@ import time
 import errno
 import shutil
 import tempfile
-from pprint import pprint
 from random import random
 
 try:
index 77ac7764bf07dfec9eb51f627c1bf092201ef5f8..56cc1efe714635cd67d4a1bfdba57b67f07f7c06 100644 (file)
@@ -29,7 +29,6 @@ from compiler.ast import *
 import parser
 import symbol
 import token
-import sys
 
 class WalkerError(StandardError):
     pass
index 2b745c206efdb3e8e5251709a341a47b9f6d0976..339ec8b4088f60b0d2adc8386bff6e12317a3d63 100644 (file)
@@ -1,4 +1,4 @@
-import glob, os, sys, unittest, getopt, time
+import os, sys, unittest, getopt, time
 
 use_resources = []
 
index 28be6c619f70c4a85d217802bce0cf6b070c4cd0..d15bd2efe614d0abf684dd1c4b68f64c4d90fa45 100644 (file)
@@ -1,5 +1,4 @@
 import unittest
-import sys
 
 from ctypes import *
 
index 0cfe82e1f8e859421379a159f9e50ed19943f9cc..ed1297dc156f3fc3b48f9c4969e246eaa8258062 100644 (file)
@@ -1,5 +1,5 @@
 import unittest
-import os, sys
+import sys
 from ctypes import *
 from ctypes.util import find_library
 from ctypes.test import is_resource_enabled
index c39f3507c0ccaf482882d4d00d5c08b2512c65f9..8d59f903fc9b6faa31b555822ef186b65945cde1 100644 (file)
@@ -1,4 +1,3 @@
-import sys, os
 import unittest
 
 from ctypes import *
index 291fccac14f6c21ca993438c0b1ae619d1611b00..4b950291d4cdd2d028c2355a00396d00ddb59282 100644 (file)
@@ -1,6 +1,6 @@
 from ctypes import *
 import sys, unittest
-import os, StringIO
+import os
 from ctypes.util import find_library
 from ctypes.test import is_resource_enabled
 
index 584574132708fe5c3e530f380f82a0594933b70a..dfd84eeac01bc209177c1bda89e06419b462cfad 100644 (file)
@@ -1,6 +1,6 @@
 from ctypes import *
 import unittest
-import sys, struct
+import struct
 
 def valid_ranges(*types):
     # given a sequence of numeric types, collect their _type_
index 53352041e9a62c0724e0338ace49877c69d920e7..9f1d86785dbf1bad2734bd14658a768045719772 100644 (file)
@@ -7,7 +7,7 @@ to a sane state so you can read the resulting traceback.
 
 """
 
-import sys, curses
+import curses
 
 def wrapper(func, *args, **kwds):
     """Wrapper function that initializes curses and calls another function,
index ca524a5b88ed86c40689d70ed607f281fd260306..d4fc53366fdada51d789b41f9b0409fb9ab90ff5 100644 (file)
@@ -16,7 +16,7 @@ for the Borland C++ compiler.
 __revision__ = "$Id$"
 
 
-import sys, os
+import os
 from distutils.errors import \
      DistutilsExecError, DistutilsPlatformError, \
      CompileError, LibError, LinkError, UnknownFileError
index 23c25a55a8793cf048bb5444f34a4e2edc97f87e..d6897d2d09b1ea085b0ea7aac87cd84c324f20cb 100644 (file)
@@ -7,7 +7,7 @@ distribution)."""
 
 __revision__ = "$Id$"
 
-import os, string
+import os
 from types import *
 from distutils.core import Command
 from distutils.errors import *
index ccba00955ac1a241920aab414d2e8e65724e8151..f740c468e7f6575b7080d0ba4618b4b551871348 100644 (file)
@@ -11,7 +11,7 @@ __revision__ = "$Id$"
 import os
 from distutils.core import Command
 from distutils.util import get_platform
-from distutils.dir_util import create_tree, remove_tree, ensure_relative
+from distutils.dir_util import remove_tree, ensure_relative
 from distutils.errors import *
 from distutils.sysconfig import get_python_version
 from distutils import log
index a1c0df4bc54a31f42df76a6738393e80bc335caa..a4014525b72ca341e4a1868e140e0a3f5d30a073 100644 (file)
@@ -7,7 +7,7 @@
 Implements the bdist_msi command.
 """
 
-import sys, os, string
+import sys, os
 from distutils.core import Command
 from distutils.util import get_platform
 from distutils.dir_util import remove_tree
index 6f0e0d881cb3aeb93732b4ab60f750533b324019..9aa70300493397ea4d0eff2108601fd3ef2f9663 100644 (file)
@@ -8,7 +8,6 @@ distributions)."""
 __revision__ = "$Id$"
 
 import sys, os, string
-import glob
 from types import *
 from distutils.core import Command
 from distutils.debug import DEBUG
index b9f39bae79ccc5d9e99e51f2ec9a18d3e55fac48..be6d2c5b4da29ffbb12ea49040308fca258556a1 100644 (file)
@@ -6,7 +6,7 @@ Implements the Distutils 'build_py' command."""
 
 __revision__ = "$Id$"
 
-import sys, string, os
+import string, os
 from types import *
 from glob import glob
 
index 6af363b36dd460f3fc02204c4546ea7dd54cd733..104be0b349c6d185bf84db7deaf3002e79bafbde 100644 (file)
@@ -6,7 +6,7 @@ Implements the Distutils 'build_scripts' command."""
 
 __revision__ = "$Id$"
 
-import sys, os, re
+import os, re
 from stat import ST_MODE
 from distutils import sysconfig
 from distutils.core import Command
index c62121023d3a973ae08043332884c286620105f6..0d39b91cc3e89d3adfaf5c37eb8c859e070cb3ab 100644 (file)
@@ -17,7 +17,6 @@ from distutils.errors import DistutilsPlatformError
 from distutils.file_util import write_file
 from distutils.util import convert_path, subst_vars, change_root
 from distutils.errors import DistutilsOptionError
-from glob import glob
 
 if sys.version < "2.2":
     WINDOWS_SCHEME = {
index 2bd1b0436788f128002b8c60691405515bb1c098..4895240a4cd203d579088fcfef702490d332a9eb 100644 (file)
@@ -7,7 +7,6 @@ files to the Python include directory."""
 
 __revision__ = "$Id$"
 
-import os
 from distutils.core import Command
 
 
index 08ff543449c04c773108c875601415b3f5755ac4..81107a85cb56b078357d038b2d886ed8a6f68074 100644 (file)
@@ -2,7 +2,7 @@
 
 __revision__ = "$Id$"
 
-import sys, os, string
+import os
 from types import IntType
 from distutils.core import Command
 from distutils.errors import DistutilsOptionError
index d1a9100de45cd4cd641a7814965d2e9771c24216..5c588effd3ea947bf4384c05e72cded4260705c5 100644 (file)
@@ -7,7 +7,7 @@ Implements the Distutils 'register' command (register with the repository).
 
 __revision__ = "$Id$"
 
-import sys, os, string, urllib2, getpass, urlparse
+import os, string, urllib2, getpass, urlparse
 import StringIO, ConfigParser
 
 from distutils.core import Command
index a06b1953b45b9ca25f918788924d4dede211b956..9b37f7898278599c6e23e9d4e222227a6c767d09 100644 (file)
@@ -6,7 +6,7 @@ Implements the Distutils 'sdist' command (create a source distribution)."""
 
 __revision__ = "$Id$"
 
-import sys, os, string
+import os, string
 from types import *
 from glob import glob
 from distutils.core import Command
index 43f9aaaf5bb3d43b50a6e6048fb2a805344e7d0d..6d27cce64fcf135e70ed10be6e838cde5d1b223f 100644 (file)
@@ -11,7 +11,6 @@ __revision__ = "$Id$"
 import os, string, re
 import fnmatch
 from types import *
-from glob import glob
 from distutils.util import convert_path
 from distutils.errors import DistutilsTemplateError, DistutilsInternalError
 from distutils import log
index 4d2a7cdf1a167f619ae177ce9085144948d97ed0..5ae79332c09c569c8d47d047e823c73d4eb380ca 100644 (file)
@@ -3,10 +3,8 @@
 import distutils.cmd
 import distutils.dist
 import os
-import shutil
 import StringIO
 import sys
-import tempfile
 import unittest
 
 from test.test_support import TESTFN
index 770b7c376fdfdfb17610fb05a3fb11dc8064b7e4..d56f7e9bc5269b5ebc913b5fb9b90c95e0a2914c 100644 (file)
@@ -2,7 +2,6 @@
 
 from distutils import sysconfig
 import os
-import sys
 import unittest
 
 from test.test_support import TESTFN
index 75e8a5316ebba254884a9af1b6388d075ff3efb2..dc759ee8f5395931e8a5cd4c2e3c609c34d04ef0 100644 (file)
@@ -17,7 +17,6 @@ __revision__ = "$Id$"
 
 import os, sys
 from types import StringType, NoneType
-from copy import copy
 
 from distutils import sysconfig
 from distutils.dep_util import newer
index 0129d9d4e661afd883bd1464ea07f762392a6e80..8e76e433c5f58a7deb88183d23b9f73f4462dbb3 100644 (file)
@@ -35,7 +35,6 @@ __all__ = [
     'header_encode',
     ]
 
-import re
 
 from binascii import b2a_base64, a2b_base64
 from email.utils import fix_eols
index ee952d392e2a2d06bd994e82a79fbbab23922dba..50010e69b06315c1c001362439756733957eda51 100644 (file)
@@ -27,7 +27,6 @@ import random
 import socket
 import urllib
 import warnings
-from cStringIO import StringIO
 
 from email._parseaddr import quote
 from email._parseaddr import AddressList as _AddressList
index 7d6d91d447d123ae79ca6f65adccaec7391e0828..99d0729494fc6c8b94231d3a41174e14cc471c07 100644 (file)
@@ -2,7 +2,6 @@ import _hotshot
 import os.path
 import parser
 import symbol
-import sys
 
 from _hotshot import \
      WHAT_ENTER, \
index cd4c51d483678ae189a35514c1fa48ac11c62579..fb88d581d3d34a79d950f608a6185745b7b2d44a 100644 (file)
@@ -1,7 +1,6 @@
 import errno
 import hotshot
 import hotshot.stats
-import os
 import sys
 import test.pystone
 
index 6d27d24466ac8864f9cbac3050c08536e7e74831..c7d8e781df06212bfc62682f11ce513adf3a5444 100644 (file)
@@ -66,7 +66,6 @@ Req-started-unread-response    _CS_REQ_STARTED    <response_class>
 Req-sent-unread-response       _CS_REQ_SENT       <response_class>
 """
 
-import errno
 import mimetools
 import socket
 from urlparse import urlsplit
index 547df13ee30c996a0e9ecf602352debe3180d58d..51de6390aa8a13265f4362105c0e4e5076897e66 100644 (file)
@@ -30,7 +30,6 @@ Each function will be called at most once for each event.
 """
 
 import sys
-import os
 import string
 import re
 import Tkinter
index 74085c36f51e7137d5221da10c205f3d66d52361..fa234d17c17bebdc0ba48bbff625271d4830be3a 100644 (file)
@@ -20,7 +20,6 @@ barrier, in particular frame and traceback objects.
 
 """
 
-import sys
 import types
 import rpc
 import Debugger
index c5c171fb83c2c67f7884b9cf0eb6efff50075175..5299e0e951d7847852448323fdcd247f6fd1b2bc 100644 (file)
@@ -15,7 +15,6 @@
 # - optimize tree redraw after expand of subnode
 
 import os
-import sys
 from Tkinter import *
 import imp
 
index 182a1170e83ea4861c3cd6678bfa1b7a191c95ad..5896bd5d1b6e36e3d018804b2d7a3bce4eb8cdf9 100644 (file)
@@ -1,4 +1,3 @@
-import sys
 import string
 from Tkinter import *
 from Delegator import Delegator
index 010ab2c1aa9ea85b85915b2607ebbff13a013f75..acab053486459d0b8da08aa3b9db7670ad8176e7 100644 (file)
@@ -11,7 +11,7 @@ Refer to comments in EditorWindow autoindent code for details.
 """
 from Tkinter import *
 import tkMessageBox, tkColorChooser, tkFont
-import string, copy
+import string
 
 from configHandler import idleConf
 from dynOptionMenuWidget import DynOptionMenu
index aff9cac5879fa8dc69498d5568a548c59cc932a3..1ce7ff468602b0a2df773fe95d9f33acb7022ba4 100644 (file)
@@ -3,7 +3,7 @@ Dialog for building Tkinter accelerator key bindings
 """
 from Tkinter import *
 import tkMessageBox
-import string, os
+import string
 
 class GetKeysDialog(Toplevel):
     def __init__(self,parent,title,action,currentKeySequences):
index 6e919827b9c84aaab8cae34452222e8ab9486ee3..7827c740e66827c1dfffbfe9827ba5e8c541cd21 100644 (file)
@@ -1,5 +1,4 @@
 import sys
-import os
 import linecache
 import time
 import socket
index 03475f4060789bf8c114e009a1a841af5920d3cb..6948a49325c9d2230b27ef46c95f74eae1dea107 100644 (file)
@@ -26,7 +26,6 @@ askstring -- get a string from the user
 '''
 
 from Tkinter import *
-import os
 
 class Dialog(Toplevel):
 
index e8081d6c1f0a6c1a9a8c33473e2584e107d07daf..a974e83ce631fd160acb6aeb78a4fd6aa935b053 100644 (file)
@@ -27,7 +27,7 @@ Copyright (C) 2001-2007 Vinay Sajip. All Rights Reserved.
 To use, simply 'import logging' and log away!
 """
 
-import sys, logging, socket, types, os, string, cPickle, struct, time, glob
+import logging, socket, types, os, string, cPickle, struct, time, glob
 from stat import ST_DEV, ST_INO
 
 try:
index c4a4ac5f70593cea8307a3df1f52f2807bf28ada..59f1402288b893fa831a48bc477a15637faed177 100644 (file)
@@ -6,8 +6,8 @@ module as os.path.
 """
 
 import os
-import stat
 import sys
+import stat
 import genericpath
 from genericpath import *
 
index 98247cbf3495ed01e87703d14951b2d250c1c13c..6a08dc942d96c54329ec641a7a53c2e7649d3252 100644 (file)
@@ -6,7 +6,6 @@ There are two classes:
         only suitable for the simplest of AppleEvent servers.
 """
 
-import sys
 import traceback
 import MacOS
 from Carbon import AE
index 529a0a4ed857be319528b632322a3ea3a0e93e81..9ad9c4401ec68de2a7bb83b9033683980092d260 100644 (file)
@@ -13,18 +13,14 @@ coerce(x, wanted_sample) coerces a python object to another python object
 #
 
 import struct
-import string
 import types
-from string import strip
 from types import *
 from Carbon import AE
 from Carbon.AppleEvents import *
 import MacOS
 import Carbon.File
-import StringIO
 import aetypes
 from aetypes import mkenum, ObjectSpecifier
-import os
 
 # These ones seem to be missing from AppleEvents
 # (they're in AERegistry.h)
index e7fa354075318a0d933dcfd63091d532b2c0c880..271eb3e10a3cf9dc07e61f63457fefec3fd31643 100644 (file)
@@ -5,7 +5,7 @@
 # but mac-style for MacPython, whether running on OS9 or OSX.
 #
 
-import sys, os
+import os
 
 Error = "bgenlocations.Error"
 #
index fc4861e691bb07da4f40bf673236661ac67f1046..217f9e8739fc04bb499a5e1e15630bac83a9b812 100644 (file)
@@ -7,9 +7,7 @@ copy(src, dst) - Full copy of 'src' to 'dst'
 from Carbon import Res
 from Carbon import File, Files
 import os
-import sys
 import MacOS
-import time
 try:
     openrf = MacOS.openrf
 except AttributeError:
index 7a8badf446320bf3f86a0cfff782d94305212059..5d5386e65cc2d5d776b20746fd0ceeaa7c9f798e 100644 (file)
@@ -4,7 +4,6 @@ Do not import directly, use urllib instead."""
 
 import string
 import urllib
-import os
 
 __all__ = ["url2pathname","pathname2url"]
 
index 761bdaa6b74223aa19111cdb9a881fcb9e97c174..cb0a6216fdf1f1039b009c8b106f6db98b7295e4 100644 (file)
@@ -21,7 +21,7 @@
 #    misrepresented as being the original software.
 # 3. This notice may not be removed or altered from any source distribution.
 
-import os, unittest
+import unittest
 import sqlite3 as sqlite
 
 class CollationTests(unittest.TestCase):
index 92881440a3106b38d35f4007e626b9ff434c7e05..24502e44e0dd2a52159c51f99092203e7634ecfe 100644 (file)
@@ -55,7 +55,7 @@ PROTOCOL_SSLv23
 PROTOCOL_TLSv1
 """
 
-import os, sys, textwrap
+import textwrap
 
 import _ssl             # if we can't import it, let the error propagate
 
index 7eb55f66831d150b8289c0af50dc418688b272f4..3c75de39d66ddc45b739f4be88ebd6fdb537eb51 100644 (file)
@@ -13,7 +13,6 @@ the same application, the present example should work just fine.  DC
 """
 
 import os, sys, time, thread, unittest
-from test.test_support import TestSkipped
 
 LONGSLEEP = 2
 SHORTSLEEP = 0.5
index 88bc49d6fdaa8becaf1283a3de77bc905c5932fb..b3f24d30a9e5fa60fab4cdbd222ff880f5cbbf5e 100644 (file)
@@ -5,7 +5,6 @@ Tests common to list and UserList.UserList
 import sys
 import os
 
-import unittest
 from test import test_support, seq_tests
 
 class CommonTest(seq_tests.CommonTest):
index 2ea50945ed287e98780206eb2d20fd3fd4c08f9e..d9b2d2966e28573555c995750a9f7abf37cb42f4 100644 (file)
@@ -3,7 +3,6 @@ Tests common to tuple, list and UserList.UserList
 """
 
 import unittest
-from test import test_support
 import sys
 
 # Various iterables
index 5a20bf226b8d2e951eb88146fdfeb427c3e07d07..6a32cb6b625eb7b8ca8b4c68240d68ef700f490a 100644 (file)
@@ -7,7 +7,7 @@ This should generate Barry's example, modulo some quotes and newlines.
 
 """
 
-import unittest, sys, StringIO
+import unittest, StringIO
 from test.test_support import run_unittest
 
 import warnings
index 26ed012272b00c0ae66f50afb1eb81e47dd90d5a..571e3912b2bf2204929363bdd11fcde789e8e93a 100644 (file)
@@ -1,5 +1,5 @@
 import unittest
-from test.test_support import verbose, run_unittest
+from test.test_support import run_unittest
 import sys
 import warnings
 
index ac5f7ee245a272f8cb8e9ea11e03b35b1a0fa1bf..c53dceacbd5e0690fb6a254226dbdc44b73ddb3b 100644 (file)
@@ -3,7 +3,6 @@
 
 """Unit tests for abc.py."""
 
-import sys
 import unittest
 from test import test_support
 
index d533f1abc04fb7759c3c9ebad4022decbea187ae..e915028dca3e272f240436e88d92410bf328988e 100644 (file)
@@ -5,7 +5,6 @@ import macostools
 import Carbon.File
 import MacOS
 import os
-import sys
 from test import test_support
 import struct
 import applesingle
index 0bb7e53706546c25aefaf9d1bdea2b28b364ae14..a54594a450c01fefbdba4a05628207b9e447fd72 100755 (executable)
@@ -6,7 +6,7 @@
 import unittest
 from test import test_support
 from weakref import proxy
-import array, cStringIO, math
+import array, cStringIO
 from cPickle import loads, dumps
 
 class ArraySubclass(array.array):
index df1ece09c917936fbcddf12baaea21973dcfedda..51e1a7eb8d3b4ec348a9be1140fa6de89a630e52 100644 (file)
@@ -4,7 +4,7 @@ The file 185test.db found in Lib/test/ is for testing purposes with this
 testing suite.
 
 """
-from test.test_support import verbose, run_unittest, findfile
+from test.test_support import run_unittest, findfile
 import unittest
 import bsddb185
 import anydbm
index 9cf333187a45a3fc33136ab3e97f74eccb616fc9..fc61d21a22abede1392509a87d219cffb5c1a726 100644 (file)
@@ -1,7 +1,6 @@
 "Test the functionality of Python classes implementing operators."
 
 import unittest
-import sys
 
 from test import test_support
 
index 5aa1c40fa1cbbf10b3b4e566acc91ca56ddbcfbc..c08df0ba23cadeb740564448866d6685e74c5d89 100644 (file)
@@ -5,7 +5,6 @@ Original by Michael Schneider
 """
 
 
-from test import test_support
 import cmd
 import sys
 
@@ -170,7 +169,7 @@ def test_main(verbose=None):
     from test import test_support, test_cmd
     test_support.run_doctest(test_cmd, verbose)
 
-import trace, sys,re,StringIO
+import trace, sys
 def test_coverage(coverdir):
     tracer=trace.Trace(ignoredirs=[sys.prefix, sys.exec_prefix,],
                         trace=0, count=1)
index d704e4b73451d5fa979314f914076da8104ca393..e3a7e43737b97baeb4cd2449e2647199416dafac 100644 (file)
@@ -1,5 +1,4 @@
 import copy
-import sys
 import warnings
 import unittest
 from test.test_support import run_unittest, TestFailed
index 2fde614dd46bdcbea2b24f3bfb3317af123ab232..13da80d2d4d59e3278d1178c813d923e367a2d95 100644 (file)
@@ -1,4 +1,3 @@
-import sys
 import unittest
 from test import test_support
 
index 606ed700dfd049ad072c1ae6e72494add0fdb1fb..7d5ec7c5b81e2d0154f435cbf1ea4aee3204985d 100644 (file)
@@ -52,7 +52,8 @@ class CompilerTest(unittest.TestCase):
                         compiler.compile(buf, basename, "exec")
                     except Exception, e:
                         args = list(e.args)
-                        args[0] += "[in file %s]" % basename
+                        args.append("in file %s]" % basename)
+                        #args[0] += "[in file %s]" % basename
                         e.args = tuple(args)
                         raise
 
index ff4c987eba21b65c5659a3adcf1819740ced0cea..d2899bd4eab9f1184aeebdd53a94a9805770878c 100644 (file)
@@ -1,6 +1,5 @@
 """Unit tests for the copy module."""
 
-import sys
 import copy
 import copy_reg
 
index 78beda773c06cedc5c393e283318aaf02c3a3d0f..d6e703a7fa5cebdcba8724fe0b834a0655987a14 100644 (file)
@@ -1,5 +1,4 @@
 import cPickle
-import unittest
 from cStringIO import StringIO
 from test.pickletester import AbstractPickleTests, AbstractPickleModuleTests
 from test import test_support
index cb639b41eaf443fca6be181203bb633033bab903..ee104e45ed5813c135763b574764a76b05ad7bdb 100644 (file)
@@ -4,7 +4,6 @@ See http://www.zope.org/Members/fdrake/DateTimeWiki/TestCases
 """
 
 import os
-import sys
 import pickle
 import cPickle
 import unittest
index b93e72eb728eb02747ee9f54a83f23e0ba2cac1a..4da0932bfc60e0eed6e6c9bda34a1395dce6c6b0 100755 (executable)
@@ -3,7 +3,6 @@
    Roger E. Masse
 """
 import os
-import random
 import dbm
 from dbm import error
 from test.test_support import verbose, verify, TestSkipped, TESTFN
index e0ca746cd09713ae27fcdf22adc9c7c89e4b9b21..b69110d88d5bcc349a94ac8a79887f9e136e0768 100644 (file)
@@ -4,7 +4,6 @@ from test import test_support, seq_tests
 from weakref import proxy
 import copy
 import cPickle as pickle
-from cStringIO import StringIO
 import random
 import os
 
index 4ed76ea10b51be6db935e065bb1113fa64ac6bb9..7dd5f06868679e6088858cf621a082c6075de358 100644 (file)
@@ -1,7 +1,7 @@
 import unittest
 from test import test_support
 
-import sys, UserDict, cStringIO, random, string
+import UserDict, random, string
 
 
 class DictTest(unittest.TestCase):
index d0e1c7e8e487dfe18070098da8b7fad53f15786e..fd508a94a26000776fbc6b6b64a70722d5e7e3f9 100644 (file)
@@ -1,6 +1,6 @@
 # Minimal tests for dis module
 
-from test.test_support import verbose, run_unittest
+from test.test_support import run_unittest
 import unittest
 import sys
 import dis
index 8c8786a12b1e6b0d102439ddcf6d0d71e8975813..943fb82182c1918b4f25211a83705037b46864db 100644 (file)
@@ -2418,7 +2418,7 @@ def test_main():
     from test import test_doctest
     test_support.run_doctest(test_doctest, verbosity=True)
 
-import trace, sys, re, StringIO
+import trace, sys
 def test_coverage(coverdir):
     tracer = trace.Trace(ignoredirs=[sys.prefix, sys.exec_prefix,],
                          trace=0, count=1)
index 3724f1e5a4ee27a761c32065dd6e016353cea192..dcb9729fe377c0bc8c6d9269618294e5c9bfdfcb 100644 (file)
@@ -3,7 +3,6 @@
 # Create a bunch of threads, let each do some work, wait until all are done
 
 from test.test_support import verbose
-import random
 import dummy_threading as _threading
 import time
 
index f609968167e090893bf84348086095aac4aca3d2..cb4ee6083e43ea8a2b04860f31d6f1dd75c65ba6 100644 (file)
@@ -1,7 +1,6 @@
 # Copyright (C) 2001,2002 Python Software Foundation
 # email package unit tests
 
-import unittest
 # The specific tests now live in Lib/email/test
 from email.test.test_email import suite
 from test import test_support
index 163e791d8a26085bf6b647462ab21c062258095c..2c814dfdec8e4eb0b414fa5e35a2aeedb9ff45c7 100644 (file)
@@ -1,7 +1,6 @@
 # Copyright (C) 2001-2006 Python Software Foundation
 # email package unit tests
 
-import unittest
 # The specific tests now live in Lib/email/test
 from email.test.test_email_renamed import suite
 from test import test_support
index aae35182bd1811a5fa24143bd8ee8e84bf6e776c..4d4c03b9d7bcfb7145548241dce163ab66f6a86f 100644 (file)
@@ -1,7 +1,6 @@
 #! /usr/bin/env python
 """test script for a few new invalid token catches"""
 
-import os
 import unittest
 from test import test_support
 
index 96d1bc184ca9cf5c9405284e76c7151e35c0808a..bdf8e03f8676e5fde158a12bac8c6b86fd3dab4c 100644 (file)
@@ -1,4 +1,4 @@
-from test.test_support import verify, verbose, TestFailed, sortdict
+from test.test_support import verify, TestFailed, sortdict
 from UserList import UserList
 from UserDict import UserDict
 
index f6589b76ff78a69edb680e6ad4aff5d0c643d744..9fb3ea7f7ab2e5ff62bc7d668cd66babf6450989 100644 (file)
@@ -6,7 +6,7 @@ Nick Mathewson
 import unittest
 from test.test_support import verbose, TESTFN, run_unittest
 from test.test_support import unlink as safe_unlink
-import sys, os, re
+import sys, re
 from StringIO import StringIO
 from fileinput import FileInput, hook_encoded
 
index 654456adf696794d68420e73aa95609fdf88beac..743f0943a499249520ca365f772c39aecf86ca61 100644 (file)
@@ -1,7 +1,7 @@
 """Tests for Lib/fractions.py."""
 
 from decimal import Decimal
-from test.test_support import run_unittest, verbose
+from test.test_support import run_unittest
 import math
 import operator
 import fractions
index 90ca303eca5585692963eecbac17ed3a24924c15..fa76fbc1180aa7dcb9bdad70eb262562b3c6d3bd 100644 (file)
@@ -1,8 +1,7 @@
 import unittest
 from test import test_support
-import sys
 
-import warnings, re
+import warnings
 warnings.filterwarnings("ignore",
                         category=DeprecationWarning,
                         message=".*integer argument expected, got float",
index 124a4692b1da135a4b30bdb4f88aa4ad308e6928..1704a60dc82e01fb83401e2bfbff3e6e2668e8da 100644 (file)
@@ -4,7 +4,7 @@
 
 import unittest
 from test import test_support
-import sys, os
+import os
 import gzip
 
 
index 229bbeddf21b6c70c28b8b35f0582551dbc7aa74..810af6c8cbc86073677f4c9165126f408ea35229 100755 (executable)
@@ -2,7 +2,6 @@
 
 import HTMLParser
 import pprint
-import sys
 import unittest
 from test import test_support
 
index 6a20c6b81d2284e681b49c50a4074263c08368bc..d312ae5fa95ab4485b60129f0cc89c01810b018b 100644 (file)
@@ -1,6 +1,5 @@
 import httplib
 import StringIO
-import sys
 import socket
 
 from unittest import TestCase
index bdfd796b1e028904dce9266e7e54515a67090b4c..11311c4f437865b90cbe2ed163b8ed8f6880f1a6 100755 (executable)
@@ -6,7 +6,7 @@
 
 from test.test_support import verbose, unlink, findfile
 
-import imgfile, uu, os
+import imgfile, uu
 
 
 def main():
index 62b14e071bd0da41585376c2293c66f92e3792c1..f597728b16b6cee004e26da1cb508b06b3b60cdb 100644 (file)
@@ -1,5 +1,4 @@
 import imp
-import thread
 import unittest
 from test import test_support
 
index 323b37b754ba94f62e20d057b32ef99bdb339d0c..75f24342737cd9f1f9365b09703ea2af17f9a40b 100644 (file)
@@ -1,7 +1,6 @@
 import unittest
 from test import test_support
 import operator
-import sys
 from sys import maxint
 maxsize = test_support.MAX_Py_ssize_t
 minsize = -maxsize-1
index 5d1d1ce13759db3c4f9e689de88260a553a6b354..303490bcdc57bf88356db490e36bcbfe5452eacc 100644 (file)
@@ -4,13 +4,9 @@ test_support.requires('audio')
 from test.test_support import findfile, TestSkipped, run_unittest
 
 import errno
-import fcntl
 import linuxaudiodev
-import os
 import sys
-import select
 import sunaudio
-import time
 import audioop
 import unittest
 
index 34895290a64f6b89b60572c3fe7b7ace695870bb..37507fe8f42ba072a59bbd4e8c35144c464b5b95 100644 (file)
@@ -1,4 +1,3 @@
-import unittest
 import sys
 from test import test_support, list_tests
 
index 1ed6cb279e32c7fdbe04d814d936abf256135e05..5a96664c29d8d27f7ba91d01d3ad84a7600300dc 100644 (file)
@@ -1858,8 +1858,8 @@ INF -> INFO: Finish up, it's closing time. Messages should bear numbers 0 throug
 <BLANKLINE>
 """
 import select
-import os, sys, string, struct, types, cPickle, cStringIO
-import socket, tempfile, threading, time
+import os, sys, string, struct, cPickle, cStringIO
+import socket, threading
 import logging, logging.handlers, logging.config, test.test_support
 
 
index fcc4c8fec3728426da657185f74a691fe1eba207..97bca2c8a7cc548c93ba86857bd8dd36a129edaa 100644 (file)
@@ -3,7 +3,6 @@
 import os
 import sys
 import pickle
-import traceback
 from StringIO import StringIO
 from test.test_support import verbose, run_unittest, TestSkipped
 import unittest
index cc8b1926b887b3d5231960a8dc9caf8f3a2fd876..e0c7ec3b9fc0028a80e5bbb578bf28febc5cf56f 100644 (file)
@@ -1,6 +1,6 @@
 # Test the module type
 import unittest
-from test.test_support import verbose, run_unittest
+from test.test_support import run_unittest
 
 import sys
 ModuleType = type(sys)
index 18cc32207204ddfba16ddceccb8b008c3a4aae72..b62758a8b52d8da74eb601e61bde705467575622 100644 (file)
@@ -1,5 +1,5 @@
 import __future__
-import sys, os
+import os
 import unittest
 import distutils.dir_util
 import tempfile
index 57a47518b2bff8ee0384fe65753e0c2f1ba2280d..60557640be3f5745c2f8e45e0948d4cbda33d78c 100644 (file)
@@ -4,7 +4,7 @@
 #   Common Unittest Routines for CJK codecs
 #
 
-import sys, codecs, os.path
+import sys, codecs
 import unittest, re
 from test import test_support
 from StringIO import StringIO
index 38d5207b0cc32295f04b6dd4828e3bc5281bbaef..7a917d8574b6f4eaf363ea84ebffd8b2da33f3ed 100644 (file)
@@ -16,7 +16,6 @@ import types
 import unittest
 
 from StringIO import StringIO
-from pprint import pprint
 from test import test_support
 
 
index 83cc344fea9f246381d27fa0a89e393134a47a61..f2ce67bad796ed8c0d6aa80a0413385d045b78ba 100644 (file)
@@ -1,14 +1,11 @@
 from test import test_support
 test_support.requires('audio')
 
-from test.test_support import verbose, findfile, TestSkipped
+from test.test_support import findfile, TestSkipped
 
 import errno
-import fcntl
 import ossaudiodev
-import os
 import sys
-import select
 import sunaudio
 import time
 import audioop
index 585644e1009c6a32b375e241bef975d34d273b28..fb10ffed16cdd342f558d658f9de05f189fddff5 100644 (file)
@@ -1,5 +1,4 @@
 import pickle
-import unittest
 from cStringIO import StringIO
 
 from test import test_support
index 28f994316eec17c2acfb519d3e4c41a067c4250a..4fa367f56001d222b1cd2affead7836b6d66ee11 100644 (file)
@@ -4,7 +4,6 @@ import sys
 import os
 import tempfile
 import textwrap
-import traceback
 import unittest
 from test import test_support
 
index 8e8d3e380949b195d02d736622273578246590fe..47630dce29764034ada6c9668962aa33413dd31a 100644 (file)
@@ -3,7 +3,6 @@
 import unittest
 import plistlib
 import os
-import time
 import datetime
 from test import test_support
 
index 60cd3f4b05be498b4eff5262ec7a171727138d69..5dbfc2c986343b449320d3f2a36efc9bd9982c9f 100644 (file)
@@ -1,6 +1,6 @@
 # Test case for the os.poll() function
 
-import sys, os, select, random, unittest
+import os, select, random, unittest
 from test.test_support import TestSkipped, TESTFN, run_unittest
 
 try:
index 7207de54eafa57f4f1f49cc8c137c19eeddd9741..1fb3c4859d2f2ddf47f1911fcafa1fc1b728cbe0 100644 (file)
@@ -9,7 +9,6 @@ except ImportError:
 
 import time
 import os
-import sys
 import unittest
 import warnings
 warnings.filterwarnings('ignore', '.* potential security risk .*',
index 56fb6830505cb808cc4bf6488f4ff4a3c49721c9..d1291a0d62eb0b2b76f06052706ed516babb897b 100644 (file)
@@ -3,7 +3,7 @@
    Nick Mathewson
 '''
 from test.test_support import run_unittest
-import unittest, sys
+import sys
 from types import ClassType, FunctionType, MethodType, BuiltinFunctionType
 import pyclbr
 from unittest import TestCase
index 631c974358114db45165ae1fa71e40e97f0a32d2..24a2f44b384a09f4563ac1f41dd5935aa352b9d1 100644 (file)
@@ -1,7 +1,7 @@
 from test import test_support
 import unittest
 
-import sys, os, cStringIO, subprocess
+import sys, cStringIO, subprocess
 import quopri
 
 
index 225f88278deac9ab5de814c05653ea10cc520c21..f354a1b6372d54ff11c4e1dafcc7a953969a4531 100644 (file)
@@ -1,7 +1,6 @@
 import unittest
 from test import test_support
 
-import os
 import resource
 import time
 
index 6d22825ddf6e69cb718fbb0bba5aac087141d3f0..197887d4aa939f063778c0f61bc305f26219749e 100644 (file)
@@ -1,5 +1,4 @@
 import rfc822
-import sys
 import unittest
 from test import test_support
 
index a2e03f91e6c883d65859629c8ab1ee417b413d72..ee14be2bb4b1c261a9a3866efd6708c1ca35760e 100644 (file)
@@ -1,9 +1,6 @@
 # Copyright (C) 2003 Python Software Foundation
 
 import unittest
-import os
-import sys
-import tempfile
 from test import test_support
 import aetools
 
index b6986360ac137b9a9242d95fc7c703c34ece767a..d9c9ddc2f5da786598dca74854a1cf9179fe6725 100644 (file)
@@ -1,4 +1,3 @@
-import htmlentitydefs
 import pprint
 import re
 import sgmllib
@@ -116,7 +115,7 @@ class SGMLParserTestCase(unittest.TestCase):
         try:
             events = self.get_events(source)
         except:
-            import sys
+            #import sys
             #print >>sys.stderr, pprint.pformat(self.events)
             raise
         if events != expected_events:
index 5c6572a9ea5bc3b5acdf330eaf10be552d04ce7a..6c35f491b5bbf99a0baf7075e21223341d52e542 100644 (file)
@@ -1,6 +1,5 @@
 # -*- coding: iso-8859-1 -*-
 import unittest
-import os, sys
 import shlex
 
 from test import test_support
index 3a8b9d314459f68bf42e9c4672c5ca54fffe4a9c..c9957df498d8b02aa2ff00e0e7aeaeaf945ef357 100644 (file)
@@ -5,12 +5,11 @@ executing have not been removed.
 
 """
 import unittest
-from test.test_support import TestSkipped, TestFailed, run_unittest, TESTFN
+from test.test_support import TestSkipped, run_unittest, TESTFN
 import __builtin__
 import os
 import sys
 import encodings
-import tempfile
 # Need to make sure to not import 'site' if someone specified ``-S`` at the
 # command-line.  Detect this by just making sure 'site' has not been imported
 # already.
index 79f3038ecf40c27f25a913361dc006f543d5012b..07dd7780444c2a5d0036111c598ab96cc3ca8ef4 100644 (file)
@@ -9,7 +9,6 @@ import imp
 import select
 import time
 import threading
-from functools import wraps
 import unittest
 import SocketServer
 
index f033772df6ca4fbcb407193086de642221ca8db0..c1523e11ba3522d78f828143c8969c1edd843eaf 100644 (file)
@@ -1,5 +1,4 @@
 from test.test_support import run_unittest, TestSkipped
-import unittest
 
 try:
     import _sqlite3
index 7ea46bb52b89e20d86549f409f170c7e195b60a8..37db252a27f74770bc30a1e18feefdb108ace386 100644 (file)
@@ -1,5 +1,4 @@
 
-import unittest
 import struct
 import sys
 from test import test_support, string_tests
index e9d3826f40fca2b397a982c212c38407b5fb7b00..1105c00ea1b999ccf229ee13e58c423cbeeec920 100755 (executable)
@@ -2,7 +2,7 @@
 
 # Sanity checker for time.strftime
 
-import time, calendar, sys, os, re
+import time, calendar, sys, re
 from test.test_support import verbose
 
 def main():
index f203d9a304bf62554e2d39498004d6249dff56db..375054207f5656b5a8eab1cec6936efda558e6c6 100644 (file)
@@ -1,4 +1,4 @@
-from test.test_support import verbose, findfile, TestFailed, TestSkipped
+from test.test_support import findfile, TestFailed, TestSkipped
 import sunaudiodev
 import os
 
index 9b4372ce285bd3c9e8041e4660ba15dd9fe36549..d36d81cfced3d288832308923bf7e2861fabf92b 100644 (file)
@@ -10,7 +10,6 @@ import sys
 import os
 import os.path
 import warnings
-import types
 import unittest
 
 class Error(Exception):
index dddb03ecc791fd83fa7b1eca48e8818cd66eee6d..c4137098e5d58a575c52e6f3c673b6a7a0dda7bc 100644 (file)
@@ -1,4 +1,3 @@
-import unittest
 from test import test_support, seq_tests
 
 class TupleTest(seq_tests.CommonTest):
index ccb9411f5514f4dcd41a47891262bbbc9cb8a8c0..bdc7192b62c5dba616c724a53030de5d630c9a9e 100644 (file)
@@ -6,7 +6,7 @@ Written by Marc-Andre Lemburg (mal@lemburg.com).
 (c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
 
 """#"
-import unittest, sys, struct, codecs, new
+import sys, struct, codecs
 from test import test_support, string_tests
 
 # Error handling (bad decoder return)
index 76a4822804804bee06ff35019fec3cec4d76d5a8..7ddbc6211844182309ac72e0ab2740bd5ba6fec7 100644 (file)
@@ -122,7 +122,6 @@ error)
 __test__ = {'doctests' : doctests}
 
 def test_main(verbose=False):
-    import sys
     from test import test_support
     from test import test_unpack
     test_support.run_doctest(test_unpack, verbose)
index 455e7fc7fe539faf64bd67fe2304802f24715715..0c669d0276706d279699463c050df58c25dfc75c 100644 (file)
@@ -8,10 +8,6 @@ import os
 import mimetools
 import tempfile
 import StringIO
-import ftplib
-import threading
-import socket
-import time
 
 def hexescape(char):
     """Escape char as RFC 2396 specifies"""
index a35cbfae842f34320cae7864915d0a44f34594d9..5727f8a6989014c6d5a164b734c22cd58a0c0d8c 100644 (file)
@@ -1,7 +1,7 @@
 import unittest
 from test import test_support
 
-import os, socket
+import os
 import StringIO
 
 import urllib2
@@ -589,7 +589,7 @@ class HandlerTests(unittest.TestCase):
             self.assertEqual(int(headers["Content-length"]), len(data))
 
     def test_file(self):
-        import time, rfc822, socket
+        import rfc822, socket
         h = urllib2.FileHandler()
         o = h.parent = MockOpener()
 
@@ -993,7 +993,7 @@ class HandlerTests(unittest.TestCase):
     def _test_basic_auth(self, opener, auth_handler, auth_header,
                          realm, http_handler, password_manager,
                          request_url, protected_url):
-        import base64, httplib
+        import base64
         user, password = "wile", "coyote"
 
         # .add_password() fed through to password manager
index b347e8216057107d9555928e6224c42477a10bb5..54bf2d97e1275fe655d9ef4d8cf5653389b31071 100644 (file)
@@ -1,6 +1,5 @@
 #!/usr/bin/env python
 
-import sys
 import threading
 import urlparse
 import urllib2
index 357c0f04a31440b814b9c8e7580b07580e268707..0818e982a634e1ae6550accbc63e2119b5f47892 100644 (file)
@@ -1,6 +1,5 @@
 # Check every path through every method of UserDict
 
-import unittest
 from test import test_support, mapping_tests
 import UserDict
 
index 8c7ef2efe2b467e5d3daff957f17831e2053042e..ed3e5593733aafdbe0b511723a4b5a24b693b1b0 100644 (file)
@@ -1,7 +1,6 @@
 # Check every path through every method of UserList
 
 from UserList import UserList
-import unittest
 from test import test_support, list_tests
 
 class UserListTest(list_tests.CommonTest):
index b66dffe3f6e0a35b0c69da53ae94519f9e4bed8f..06636fcb6438aea661c91a3128de7b98baeb8d34 100755 (executable)
@@ -2,7 +2,6 @@
 # UserString is a wrapper around the native builtin string type.
 # UserString instances should behave similar to builtin string objects.
 
-import unittest
 import string
 from test import test_support, string_tests
 
index 27d0d89e34515c2cd565f3e5e501603acc023a2b..9aad56e72e8bc88d00cb634cddf623ab6fba48bd 100644 (file)
@@ -8,7 +8,6 @@ from test import test_support
 
 import sys, os, uu, cStringIO
 import uu
-from StringIO import StringIO
 
 plaintext = "The smooth-scaled python crept over the sleeping dog\n"
 
index f2652c1679adb2d4d0c3ad4c9100fb6ba3ec23a8..1ce816f866fe2d9a21305c7fbc55e25bd15e0be0 100644 (file)
@@ -8,7 +8,6 @@ import test.test_support
 import unittest
 import whichdb
 import anydbm
-import tempfile
 import glob
 
 _fname = test.test_support.TESTFN
index 78adb42e19142e128342326ad8ce031ec0fb59a8..65c99f1327548e14f3c98ab7cbaf7f5d1d9e0b15 100644 (file)
@@ -2,7 +2,8 @@
 # all included components work as they should.  For a more extensive
 # test suite, see the selftest script in the ElementTree distribution.
 
-import doctest, sys
+import doctest
+import sys
 
 from test import test_support
 
index 250f7910738e0587cef38e98efb70a00ded4efc9..7ddd44bf81e7f7436e691f0f53fcdd4ef35c53ea 100644 (file)
@@ -1,6 +1,7 @@
 # xml.etree test for cElementTree
 
-import doctest, sys
+import doctest
+import sys
 
 from test import test_support
 
index 42cd0f468a5d888c067dead5530eb27385671fb5..3ffb74409dd3832cc01fdd7055aa8c877568b9d5 100644 (file)
@@ -5,7 +5,6 @@
 
 import pickle
 import cPickle
-import unittest
 
 from test import test_support
 from test.pickletester import AbstractPickleTests
index 449cf39d7560b90f2d431929d4d4ef9fa9c741d5..6ce2ae593b44a3207a9e4d576f504507d4d738da 100644 (file)
@@ -20,7 +20,6 @@ import zipfile, os, unittest
 import time
 import sys
 
-from StringIO import StringIO
 from tempfile import TemporaryFile
 
 from test.test_support import TESTFN, run_unittest
index 701ef7f57fc0328d171b8fde6b7d0cb7da643212..f55070bf53eb2223f86395f9f4cf2d3b9772d3ac 100644 (file)
@@ -7,8 +7,6 @@ from Carbon import Qd
 from Carbon import Win
 from Carbon import Controls
 from Carbon import List
-import sys
-import struct
 from Carbon import Icn
 import macresource
 
index 0adfc837831f37aa1b77a55ec00e2a8bc5ab6a56..f92bdd0117ecf13782e29af382acf40dba045847 100644 (file)
@@ -7,7 +7,6 @@ from Carbon import Qd
 from Carbon import Win
 from Carbon import Controls
 from Carbon import List
-import sys
 import struct
 import macresource
 
index 84cf8b8107cf4605a0600a54d0a5d5ee6e17fc5d..211d09e602e4aa9672df80e74aed08f16e6f0e1b 100644 (file)
@@ -7,7 +7,6 @@ from Carbon import Qd
 from Carbon import Win
 from Carbon import Controls
 from Carbon import List
-import sys
 import struct
 import macresource
 
index d95e7c869a7d693ecdab492be84c5a1c2ea6e978..4bc7008ed46f1047fceeb76af8535718b4f74521 100644 (file)
@@ -7,8 +7,6 @@ from Carbon import Qd
 from Carbon import Win
 from Carbon import Controls
 from Carbon import List
-import sys
-import struct
 from Carbon import Icn
 import macresource
 
index 8600bb2a1e1a4cc9fec5351d02b7e75cb31bd31f..d15a27d5701da34bb945d0ad38f4cef25336f3e6 100644 (file)
@@ -6,7 +6,6 @@ from Carbon import Res
 from Carbon import Qd
 from Carbon import Win
 from Carbon import List
-import sys
 import struct
 import macresource
 
index 2fb8dc4405d811e6c1471776cd41ed6a43ee44a4..6eb2c73f736ad8704773d219b05569c838c2c0ae 100644 (file)
@@ -4,7 +4,6 @@ Res and Dlg in the process"""
 import EasyDialogs
 from Carbon import Res
 from Carbon import Dlg
-import sys
 import socket
 import string
 import macresource
index 92cd181af5bd629c42dd35a81f5dbe899b33ee9a..fc3db668cce97c7b70969fdc5a5fab1aef45e124 100644 (file)
@@ -2,7 +2,6 @@ import FrameWork
 import EasyDialogs
 from Carbon import Res
 from Carbon import Dlg
-import sys
 import socket
 import string
 import macresource
index 28dffd376719f8e3fbaeb41a7780a16b994e2595..e38e5d8633c5b1a323656f6b396b17e0531f8a3b 100644 (file)
@@ -7,11 +7,9 @@ from Carbon import Qd
 from Carbon import QuickDraw
 from Carbon import Win
 #ifrom Carbon mport List
-import sys
 import struct
 import img
 import imgformat
-import struct
 import mac_image
 
 
index 9c9eeb72fc7d5167e715214d6d916a1d1b64bc5a..b6fb274427edd92edc394f6095d81d0b072a8b70 100644 (file)
@@ -1,7 +1,6 @@
 """mac_image - Helper routines (hacks) for images"""
 import imgformat
 from Carbon import Qd
-import time
 import struct
 import MacOS
 
index b26d5541af34bca7e3a58927082b050ca8316558..b6919c5fb10cb46850f5711105e4a021d09b2eae 100644 (file)
@@ -1,4 +1,4 @@
-import sys, math, audiodev
+import sys, math
 
 DOT = 30
 DAH = 80
index 1283c1dcd2525a7a82603777682038d30ad9817e..ce19a5e25c81e1922dddcf7c9c83f4d04782fa4a 100644 (file)
@@ -3,8 +3,6 @@
 # (Should learn how to tell the compiler to compile it as well.)
 
 import sys
-import os
-import string
 import MacOS
 
 from bgenlocations import TOOLBOXDIR, BGENDIR
index 0b7fe081f860fafe45aa904d48b02cd7dcdffb2e..b9934277284bb9077b21d0453a630bd33cf51e85 100644 (file)
@@ -1,7 +1,6 @@
 # Scan an Apple header file, generating a Python file of generator calls.
 
 import sys
-import os
 from bgenlocations import TOOLBOXDIR, BGENDIR
 sys.path.append(BGENDIR)
 from scantools import Scanner_OSX
index 1b04859ef2d074064ee888c32b20864a0140b53f..94eee474c12ffb5f2c368748238aafa08ca71352 100644 (file)
@@ -1,7 +1,6 @@
 # Scan an Apple header file, generating a Python file of generator calls.
 
 import sys
-import os
 from bgenlocations import TOOLBOXDIR, BGENDIR
 sys.path.append(BGENDIR)
 from scantools import Scanner
index e3c72ae23def87acda72fc26a534233209cb2201..31e2336b1d48709e91172c0287486d453692507a 100644 (file)
@@ -1,8 +1,6 @@
 # IBCarbonscan.py
 
 import sys
-import os
-import string
 import MacOS
 import sys
 
index d2de92e2da4ea13f1b7997d4f384f17653da0d60..6de4f1edc830d94a556808ccc1555af44153be19 100644 (file)
@@ -1,7 +1,6 @@
 # Scan an Apple header file, generating a Python file of generator calls.
 
 import sys
-import os
 from bgenlocations import TOOLBOXDIR, BGENDIR
 sys.path.append(BGENDIR)
 from scantools import Scanner_OSX
index b2e79461953be45f64787a9e53376bd2b88649df..c08394ee2d22b9392f5c674c44ddd9478e41ab3c 100755 (executable)
@@ -1,7 +1,6 @@
 # Scan an Apple header file, generating a Python file of generator calls.
 
 import sys
-import os
 from bgenlocations import TOOLBOXDIR, BGENDIR
 sys.path.append(BGENDIR)
 from scantools import Scanner_OSX
index 087f2393df6a04ae31f7c881b7b12755fd5077ec..73261f58b28e32de4a9d46ccdfd717d103187799 100644 (file)
@@ -1,7 +1,6 @@
 # Scan an Apple header file, generating a Python file of generator calls.
 
 import sys
-import os
 from bgenlocations import TOOLBOXDIR, BGENDIR
 sys.path.append(BGENDIR)
 from scantools import Scanner
index 25333f1fa073914610b1bb96b994ba62576fbe48..9cb30d15c147a31b3daca3263824fe860a190885 100644 (file)
@@ -1,6 +1,5 @@
 # Scan <Controls.h>, generating ctlgen.py.
 import sys
-import os
 from bgenlocations import TOOLBOXDIR, BGENDIR
 sys.path.append(BGENDIR)
 
index 7fb68f7cb1f53c61bbc2b859be7afc3cb44c3117..a4d6d5b9741630ad05a20a6deb79f62d408e9fa8 100644 (file)
@@ -1,7 +1,6 @@
 # Scan an Apple header file, generating a Python file of generator calls.
 
 import sys
-import os
 from bgenlocations import TOOLBOXDIR, BGENDIR
 sys.path.append(BGENDIR)
 
index 923a56bd4dd62e0975c5dc917be4e83a5aed40d8..bd419c4a6f4e77e67c720c0845c694b3d14892c6 100644 (file)
@@ -1,6 +1,5 @@
 # Scan <Drag.h>, generating draggen.py.
 import sys
-import os
 from bgenlocations import TOOLBOXDIR, BGENDIR, INCLUDEDIR
 sys.path.append(BGENDIR)
 
index 0d0c9ec4df25b59a2d0124cb71d4395213ca75a5..ea0692cfe16d51237e1dcf36db7e810297491e33 100644 (file)
@@ -1,7 +1,6 @@
 # Scan an Apple header file, generating a Python file of generator calls.
 
 import sys
-import os
 from bgenlocations import TOOLBOXDIR, BGENDIR
 sys.path.append(BGENDIR)
 from scantools import Scanner
index 8ebc69fe4e0f50feb00a83e147128e5dcc29cab6..4b70823745660a19a59b9a41987e8ed268722047 100644 (file)
@@ -1,7 +1,6 @@
 # Scan an Apple header file, generating a Python file of generator calls.
 
 import sys
-import os
 from bgenlocations import TOOLBOXDIR, BGENDIR
 sys.path.append(BGENDIR)
 from scantools import Scanner_OSX
index 334d5eca1565a2dd130508049a8c5da9e57a5b0c..1c0d4122fe5e5537dbd1e3bc5f70d0b2ca39e3d5 100644 (file)
@@ -1,7 +1,6 @@
 # Scan an Apple header file, generating a Python file of generator calls.
 
 import sys
-import os
 from bgenlocations import TOOLBOXDIR, BGENDIR
 sys.path.append(BGENDIR)
 from scantools import Scanner
index 8c94893011ff07fe2131e8c3a58ca2e09aaefdc2..746a333e0ff0e294a2db1e6b6a06a9384d7d654a 100644 (file)
@@ -1,7 +1,6 @@
 # Scan an Apple header file, generating a Python file of generator calls.
 
 import sys
-import os
 from bgenlocations import TOOLBOXDIR, BGENDIR
 sys.path.append(BGENDIR)
 from scantools import Scanner_OSX
index 50e0919dc5258e7fa9265fa1604aa984d4728667..b3543b99e4c4eee2e9ae32be7458418ae3748cf5 100644 (file)
@@ -1,7 +1,6 @@
 # Scan an Apple header file, generating a Python file of generator calls.
 
 import sys
-import os
 from bgenlocations import TOOLBOXDIR, BGENDIR
 sys.path.append(BGENDIR)
 from scantools import Scanner
index 84e4f1e67255d48bbc75c6c972acc7d2c9cc332d..f71f864e03a6b1e01179e730c110c5a2c2ec95e7 100644 (file)
@@ -1,8 +1,6 @@
 # IBCarbonscan.py
 
 import sys
-import os
-import string
 
 from bgenlocations import TOOLBOXDIR, BGENDIR
 sys.path.append(BGENDIR)
index bdc3b84413e7c7fa8709d34878ff63ce25bb946d..6af3a4ea0fd2f67c6066dd9850a1b9f0aa86956e 100644 (file)
@@ -1,7 +1,6 @@
 # Scan an Apple header file, generating a Python file of generator calls.
 
 import sys
-import os
 from bgenlocations import TOOLBOXDIR, BGENDIR
 sys.path.append(BGENDIR)
 from scantools import Scanner
index 621033ba87b73ab6f9cc121e63f28670d4d742fe..3e07238431d968a0057a4eb2eabd77d0585e251d 100644 (file)
@@ -1,7 +1,6 @@
 # Scan an Apple header file, generating a Python file of generator calls.
 
 import sys
-import os
 from bgenlocations import TOOLBOXDIR, BGENDIR
 sys.path.append(BGENDIR)
 from scantools import Scanner
index 877f6cb48bcd64eb70cbe73a42021ccb5c7c0c0a..a0274595be6c07cb213c025b5c8b0d48eb4a7546 100644 (file)
@@ -1,7 +1,6 @@
 # Scan an Apple header file, generating a Python file of generator calls.
 
 import sys
-import os
 from bgenlocations import TOOLBOXDIR, BGENDIR
 sys.path.append(BGENDIR)
 from scantools import Scanner
index ae9465ea142f76cc58a6010286642dedcb3bfd7d..8151581feb6158a0b358478b55b37f8112535585 100644 (file)
@@ -1,6 +1,5 @@
 # Scan <Menus.h>, generating menugen.py.
 import sys
-import os
 from bgenlocations import TOOLBOXDIR, BGENDIR
 sys.path.append(BGENDIR)
 
index adecb4fbecc23b90e8c7771b071a69a69a374095..e48a229de764d01c2d546c28bee74b8c8ee6b60e 100644 (file)
@@ -1,7 +1,6 @@
 # Scan an Apple header file, generating a Python file of generator calls.
 
 import sys
-import os
 from bgenlocations import TOOLBOXDIR, BGENDIR
 sys.path.append(BGENDIR)
 from scantools import Scanner_OSX
index fb8196f67f03aa88b9b9b5411c9408cfb5e911d9..5fc2e9f6f090889a7ef8f1adbc3b9cfa3691a8e3 100644 (file)
@@ -1,7 +1,6 @@
 # Scan an Apple header file, generating a Python file of generator calls.
 
 import sys
-import os
 from bgenlocations import TOOLBOXDIR, BGENDIR
 sys.path.append(BGENDIR)
 from scantools import Scanner
index 85a8cdc04c1504da86528d212d63c7e460075b14..24fbb74f88b5d5f6c3b21e014db308cdf2f9bf4f 100644 (file)
@@ -1,7 +1,6 @@
 # Scan an Apple header file, generating a Python file of generator calls.
 
 import sys
-import os
 from bgenlocations import TOOLBOXDIR, BGENDIR
 sys.path.append(BGENDIR)
 
index d456e004e26f61cf47b577d089a4f20cc47f166f..0ad98028b41dc70eec97ef76020945eaeee30989 100644 (file)
@@ -1,6 +1,5 @@
 # Scan an Apple header file, generating a Python file of generator calls.
 import sys
-import os
 from bgenlocations import TOOLBOXDIR, BGENDIR
 sys.path.append(BGENDIR)
 
index a2dba150184cd4686986d5645854855509b610a1..cd001244f62e776920b91b78938c055ab1c3768a 100644 (file)
@@ -1,7 +1,6 @@
 # Scan an Apple header file, generating a Python file of generator calls.
 
 import sys
-import os
 from bgenlocations import TOOLBOXDIR, BGENDIR
 sys.path.append(BGENDIR)
 from scantools import Scanner
index 47a97e428551903963035b51cd2097a98443ea17..6966e85819638862931db0ccdcc1ad641032c607 100644 (file)
@@ -3,8 +3,6 @@
 # (Should learn how to tell the compiler to compile it as well.)
 
 import sys
-import os
-import string
 import MacOS
 
 from bgenlocations import TOOLBOXDIR, BGENDIR
index 1fc819126572c0deccd43b1d60a70ef0cb12942d..25a683ca96a418c4c1376998727ce96360900f63 100644 (file)
@@ -4,7 +4,6 @@
 # generates a boilerplate to be edited by hand.
 
 import sys
-import os
 from bgenlocations import TOOLBOXDIR, BGENDIR
 sys.path.append(BGENDIR)
 from scantools import Scanner
index c4a82663db56f02ccc3e090e4f1e6bf39ca9a07e..7504aefd93bf36e04e8c6f3cf36406dd738a7015 100644 (file)
@@ -3,7 +3,6 @@
 # (Should learn how to tell the compiler to compile it as well.)
 
 import sys
-import os
 from bgenlocations import TOOLBOXDIR, BGENDIR
 sys.path.append(BGENDIR)
 
index f5b6fff4d4245028ad359cd418af5fe348428a70..6cd25f466113aeddc85da2ec407cd291578bef1b 100644 (file)
@@ -1,7 +1,6 @@
 # Scan an Apple header file, generating a Python file of generator calls.
 
 import sys
-import os
 from bgenlocations import TOOLBOXDIR, BGENDIR
 sys.path.append(BGENDIR)
 from scantools import Scanner
index f78935d0d513d9f264b9b65b967a9f03db79512a..8a2f726da1bd2cb64e7f9d2d4de700a2d8a25f54 100644 (file)
@@ -1,6 +1,5 @@
 # Scan an Apple header file, generating a Python file of generator calls.
 import sys
-import os
 from bgenlocations import TOOLBOXDIR, BGENDIR
 sys.path.append(BGENDIR)
 
index 991e608fa50c0a230f0c1a96bc376d06c33d9a65..0043a341d4a4388a9ecc16856d6d143e1a617170 100644 (file)
@@ -4,7 +4,7 @@
 
 __version__ = "special BeOS after 1.37"
 
-import sys, os, getopt
+import sys, os
 from distutils import sysconfig
 from distutils import text_file
 from distutils.errors import *
index defafe81537f4b75dc73fa5e204152e834067b16..ea59039b97a64fee977259ce8628befb1810cd4b 100644 (file)
@@ -7,7 +7,6 @@ Licensed to PSF under a Contributor Agreement.
 
 import os
 import sys
-import shutil
 
 here = os.path.abspath(os.path.dirname(__file__))
 par = os.path.pardir
index 574d76808611f4a305c0a840848d25d32c682d88..0590b0f282ec449a807741fe6410b5c52ebccfe7 100644 (file)
@@ -7,7 +7,6 @@ Licensed to PSF under a Contributor Agreement.
 
 import os
 import sys
-import shutil
 
 here = os.path.abspath(os.path.dirname(__file__))
 par = os.path.pardir
index 4877853deaba7ba962d3aa0bd9dec5934bb9445e..17d9dfd3ba38c260e78f9c7f1359cc5ece7f190c 100755 (executable)
@@ -4,7 +4,7 @@
 # TO DO
 # handle fields that have a type but no name
 
-import os, sys, traceback
+import os, sys
 
 import asdl
 
index 2c18623a029a4c6acdcf8a0f63c1e2947c4692e9..b064d62ec68bb7378c8e4705350724c348029f90 100644 (file)
@@ -22,7 +22,6 @@
 __version__ = 'SPARK-0.7 (pre-alpha-5)'
 
 import re
-import sys
 import string
 
 def _namelist(instance):
index 59b98f2b0a186f562fbe729ea9b35d19dc3ac6d4..c431d226b9d5f202881029a55358f35aa2a953a8 100644 (file)
@@ -8,7 +8,6 @@ the Node interface has changed more often than the grammar.
 """
 
 import fileinput
-import getopt
 import re
 import sys
 from StringIO import StringIO
index 1258cce8143a3c84921d3e19e8913a5619d2f6f2..39b96136a74765dc9b15634d3bd5a68e7e0bcc51 100755 (executable)
@@ -1,7 +1,6 @@
 #! /usr/bin/env python
 
 import marshal
-import os
 import dis
 import types
 
index a26e0d60eedab3496f0cbc2264a865070d7db6dc..c6c1a6d616a6113611cfe8988ed70db111a495e3 100755 (executable)
@@ -20,7 +20,7 @@ t1 = os.times() # If this doesn't work, just get rid of the timing code!
 try:
     FAQDIR = "/usr/people/guido/python/FAQ"
     SRCDIR = "/usr/people/guido/python/src/Tools/faqwiz"
-    import os, sys, time, operator
+    import os, sys
     os.chdir(FAQDIR)
     sys.path.insert(0, SRCDIR)
     import faqwiz
index 8f557286f508aba269d8671afe24bc79d066bbe4..12271069af4f99bb43270ac91cb5e7a9b0c2321f 100755 (executable)
@@ -218,7 +218,6 @@ def _go():
                   0, 'Save', 'Save as text')
 
 def _test():
-    import sys
     global mainWidget
     mainWidget = Frame()
     Pack.config(mainWidget)
index bf07e36dd2834676b9aee5c1d1f6d58f8a6de3f8..c4b952edf091d6ab11a2282f426de6b4dde027c2 100644 (file)
@@ -31,7 +31,7 @@
     the author. All Rights Reserved.
 
 """
-import time, sys, struct
+import time, sys
 
 #
 # Note: Please keep this module compatible to Python 1.5.2.
index 05412cec48bb9d139d1eb38fe6f59dd95060d203..f59aa2819fa8da1418b5b7556f111bfe6b81bd9d 100644 (file)
@@ -13,7 +13,6 @@ The ChipViewer class includes the entire lower left quandrant; i.e. both the
 selected and nearest ChipWidgets.
 """
 
-from types import StringType
 from Tkinter import *
 import ColorDB
 
index bcc3cda8662af19ae0a00ca9acc846e29aaeaf56..d56c1b32c09f7bf61f887d14634714f1ccead0fc 100644 (file)
@@ -12,8 +12,6 @@ color selection will be made on every change to the text field.  Otherwise,
 you must hit Return or Tab to select the color.
 """
 
-import sys
-import re
 from Tkinter import *
 
 
index edfec2c45d3e240d2e9c9ce43e57dd66b822e626..c63819c3e8c965d6d6348a383f436e78f0971bdc 100755 (executable)
@@ -34,7 +34,7 @@ XXX This code was created by reverse engineering CVS 1.9 and RCS 5.7
 from their output.
 """
 
-import os, sys, errno, getopt, re
+import sys, errno, getopt, re
 
 sep1 = '='*77 + '\n'                    # file separator
 sep2 = '-'*28 + '\n'                    # revision separator
index 6887ee282d43a198289af0fa802166c353553212..5f2bc8fc781e94fc79341c1986c3b247b4e1e7ab 100755 (executable)
@@ -34,7 +34,7 @@ Even if this isn't the default output of your nm, there is generally an
 option to produce this format (since it is the original v7 Unix format).
 
 """
-import os,re,sys
+import os, sys
 
 PYTHONLIB = 'libpython'+sys.version[:3]+'.a'
 PC_PYTHONLIB = 'Python'+sys.version[0]+sys.version[2]+'.dll'
index 89ed9e6999805c165e276ab3afd7ed7b1c5cc268..ec440d14fb346afc7569daee0e5998ab8be06369 100755 (executable)
@@ -81,7 +81,6 @@ STEPSIZE = 8
 TABSIZE = 8
 EXPANDTABS = 0
 
-import os
 import re
 import sys
 
index 71e0ded9cf5b53deea9fb50ddd3e799403676104..a295303f15f863461ac5e85a298a626df2e55c27 100644 (file)
@@ -20,7 +20,7 @@ __author__ = "Oleg Broytmann, Georg Brandl"
 __all__ = ["has_python_ext", "looks_like_python", "can_be_compiled", "walk_python_files"]
 
 
-import sys, os, re
+import os, re
 
 binary_re = re.compile('[\x00-\x08\x0E-\x1F\x7F]')
 
index c6a7d087209445839d7ca8d531c2b3a4a57735aa..ebb044d9096ac3407e3304c2e51d15c4470b22c9 100755 (executable)
@@ -7,7 +7,6 @@
 import sys
 import os
 from stat import *
-import commands
 import fnmatch
 
 EXECMAGIC = '\001\140\000\010'
index cbcd76f421746fd07a700bdabe5e627167339d00..b63428abd4a9423144b2d80cb49afbda9cdfc788 100644 (file)
@@ -6,7 +6,7 @@
 #
 # By Bill Janssen.
 
-import sys, os
+import sys
 
 def fetch_server_certificate (host, port):
 
index 8a2ca6447460bf3613e643f495cdb4fa63aa3f0e..431a76ddc59872902a0e56e9e119c69fb0cfecbd 100644 (file)
@@ -26,7 +26,7 @@ Table generation:
 
 """#"
 
-import re, os, time, marshal, codecs
+import re, os, marshal, codecs
 
 # Maximum allowed size of charmap tables
 MAX_TABLE_SIZE = 8192
index 96aed0a6b28923fa1d7a43724554fc02b295ffa3..cfc4098ef84a6a206d82f1f634ace58dd00722ca 100755 (executable)
@@ -63,7 +63,6 @@ import getopt
 from Tkinter import *
 import tktools
 import webchecker
-import random
 
 # Override some for a weaker platform
 if sys.platform == 'mac':
index 0c851ca5db3e777278fdebb57fb072ab3db02cb2..95c7ab9e1d7eceed8735952a88823641b62ef383 100755 (executable)
@@ -7,9 +7,7 @@ their respective text boxes, click GO or hit return, and presto.
 """
 
 from Tkinter import *
-import Tkinter
 import websucker
-import sys
 import os
 import threading
 import Queue