summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2008-02-23 17:40:11 (GMT)
committerChristian Heimes <christian@cheimes.de>2008-02-23 17:40:11 (GMT)
commitc5f05e45cffa16f45f1332cec531c045893f928f (patch)
tree51fbf302701bf546b81153ddacd5cce88fd25549 /Lib/distutils/command
parent19aff0c90a1632fce527d7c81769ba419184700c (diff)
downloadcpython-c5f05e45cffa16f45f1332cec531c045893f928f.zip
cpython-c5f05e45cffa16f45f1332cec531c045893f928f.tar.gz
cpython-c5f05e45cffa16f45f1332cec531c045893f928f.tar.bz2
Patch #2167 from calvin: Remove unused imports
Diffstat (limited to 'Lib/distutils/command')
-rw-r--r--Lib/distutils/command/bdist.py2
-rw-r--r--Lib/distutils/command/bdist_dumb.py2
-rw-r--r--Lib/distutils/command/bdist_msi.py2
-rw-r--r--Lib/distutils/command/bdist_rpm.py1
-rw-r--r--Lib/distutils/command/build_py.py2
-rw-r--r--Lib/distutils/command/build_scripts.py2
-rw-r--r--Lib/distutils/command/install.py1
-rw-r--r--Lib/distutils/command/install_headers.py1
-rw-r--r--Lib/distutils/command/install_lib.py2
-rw-r--r--Lib/distutils/command/register.py2
-rw-r--r--Lib/distutils/command/sdist.py2
11 files changed, 8 insertions, 11 deletions
diff --git a/Lib/distutils/command/bdist.py b/Lib/distutils/command/bdist.py
index 23c25a5..d6897d2 100644
--- a/Lib/distutils/command/bdist.py
+++ b/Lib/distutils/command/bdist.py
@@ -7,7 +7,7 @@ distribution)."""
__revision__ = "$Id$"
-import os, string
+import os
from types import *
from distutils.core import Command
from distutils.errors import *
diff --git a/Lib/distutils/command/bdist_dumb.py b/Lib/distutils/command/bdist_dumb.py
index ccba009..f740c46 100644
--- a/Lib/distutils/command/bdist_dumb.py
+++ b/Lib/distutils/command/bdist_dumb.py
@@ -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
diff --git a/Lib/distutils/command/bdist_msi.py b/Lib/distutils/command/bdist_msi.py
index a1c0df4..a401452 100644
--- a/Lib/distutils/command/bdist_msi.py
+++ b/Lib/distutils/command/bdist_msi.py
@@ -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
diff --git a/Lib/distutils/command/bdist_rpm.py b/Lib/distutils/command/bdist_rpm.py
index 6f0e0d8..9aa7030 100644
--- a/Lib/distutils/command/bdist_rpm.py
+++ b/Lib/distutils/command/bdist_rpm.py
@@ -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
diff --git a/Lib/distutils/command/build_py.py b/Lib/distutils/command/build_py.py
index b9f39ba..be6d2c5 100644
--- a/Lib/distutils/command/build_py.py
+++ b/Lib/distutils/command/build_py.py
@@ -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
diff --git a/Lib/distutils/command/build_scripts.py b/Lib/distutils/command/build_scripts.py
index 6af363b..104be0b 100644
--- a/Lib/distutils/command/build_scripts.py
+++ b/Lib/distutils/command/build_scripts.py
@@ -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
diff --git a/Lib/distutils/command/install.py b/Lib/distutils/command/install.py
index c621210..0d39b91 100644
--- a/Lib/distutils/command/install.py
+++ b/Lib/distutils/command/install.py
@@ -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 = {
diff --git a/Lib/distutils/command/install_headers.py b/Lib/distutils/command/install_headers.py
index 2bd1b04..4895240 100644
--- a/Lib/distutils/command/install_headers.py
+++ b/Lib/distutils/command/install_headers.py
@@ -7,7 +7,6 @@ files to the Python include directory."""
__revision__ = "$Id$"
-import os
from distutils.core import Command
diff --git a/Lib/distutils/command/install_lib.py b/Lib/distutils/command/install_lib.py
index 08ff543..81107a8 100644
--- a/Lib/distutils/command/install_lib.py
+++ b/Lib/distutils/command/install_lib.py
@@ -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
diff --git a/Lib/distutils/command/register.py b/Lib/distutils/command/register.py
index d1a9100..5c588ef 100644
--- a/Lib/distutils/command/register.py
+++ b/Lib/distutils/command/register.py
@@ -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
diff --git a/Lib/distutils/command/sdist.py b/Lib/distutils/command/sdist.py
index a06b195..9b37f78 100644
--- a/Lib/distutils/command/sdist.py
+++ b/Lib/distutils/command/sdist.py
@@ -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