diff options
| author | Konrad Delong <konryd@gmail.com> | 2010-07-27 15:07:46 +0200 |
|---|---|---|
| committer | Konrad Delong <konryd@gmail.com> | 2010-07-27 15:07:46 +0200 |
| commit | 9da67de95ddac89371ae85e609003fee0331723f (patch) | |
| tree | 21def38a20233c7673fcb5734a17ef473ffafc5d /src/distutils2/command/upload_docs.py | |
| parent | 6b554ce70cd2e6b7a6e0633100de6cb533e46d46 (diff) | |
| parent | 64aa303aca57a5f5a1e09b43f598eb866cfc8483 (diff) | |
| download | disutils2-9da67de95ddac89371ae85e609003fee0331723f.tar.gz | |
merged upstream
Diffstat (limited to 'src/distutils2/command/upload_docs.py')
| -rw-r--r-- | src/distutils2/command/upload_docs.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/distutils2/command/upload_docs.py b/src/distutils2/command/upload_docs.py index 860f07f..120837b 100644 --- a/src/distutils2/command/upload_docs.py +++ b/src/distutils2/command/upload_docs.py @@ -1,4 +1,4 @@ -import base64, httplib, os.path, socket, tempfile, urlparse, zipfile +import base64, httplib, os.path, socket, urlparse, zipfile from cStringIO import StringIO from distutils2 import log from distutils2.command.upload import upload @@ -81,7 +81,6 @@ class upload_docs(PyPIRCCommand): raise DistutilsFileError(mesg % upload_dir) def run(self): - tmp_dir = tempfile.mkdtemp() name = self.distribution.metadata['Name'] version = self.distribution.metadata['Version'] zip_file = zip_dir(self.upload_dir) @@ -125,7 +124,7 @@ class upload_docs(PyPIRCCommand): elif r.status == 301: location = r.getheader('Location') if location is None: - location = 'http://packages.python.org/%s/' % meta.get_name() + location = 'http://packages.python.org/%s/' % name self.announce('Upload successful. Visit %s' % location, log.INFO) else: |
