diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-09-03 22:39:26 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-09-03 22:39:26 -0400 |
commit | bd959a59df72cacea485bedccd8f5d452e0aa353 (patch) | |
tree | 6fc07510f617de794559556805ab0c29590017ac /setuptools/command/upload.py | |
parent | 234c0fc5d3ecde835fd130a8d072fcffba7e172c (diff) | |
download | external_python_setuptools-bd959a59df72cacea485bedccd8f5d452e0aa353.tar.gz external_python_setuptools-bd959a59df72cacea485bedccd8f5d452e0aa353.tar.bz2 external_python_setuptools-bd959a59df72cacea485bedccd8f5d452e0aa353.zip |
Remove import *
Diffstat (limited to 'setuptools/command/upload.py')
-rwxr-xr-x | setuptools/command/upload.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/setuptools/command/upload.py b/setuptools/command/upload.py index 02d955ed..8d258d5a 100755 --- a/setuptools/command/upload.py +++ b/setuptools/command/upload.py @@ -2,10 +2,10 @@ Implements the Distutils 'upload' subcommand (upload package to PyPI).""" -from distutils.errors import * +from distutils import errors +from distutils import log from distutils.core import Command from distutils.spawn import spawn -from distutils import log try: from hashlib import md5 except ImportError: @@ -45,7 +45,7 @@ class upload(Command): def finalize_options(self): if self.identity and not self.sign: - raise DistutilsOptionError( + raise errors.DistutilsOptionError( "Must use --sign for --identity to have meaning" ) if 'HOME' in os.environ: @@ -68,7 +68,7 @@ class upload(Command): def run(self): if not self.distribution.dist_files: - raise DistutilsOptionError("No dist file created in earlier command") + raise errors.DistutilsOptionError("No dist file created in earlier command") for command, pyversion, filename in self.distribution.dist_files: self.upload_file(command, pyversion, filename) |