diff options
| author | Tim Peters <tim.peters@gmail.com> | 2005-03-28 01:08:02 +0000 |
|---|---|---|
| committer | Tim Peters <tim.peters@gmail.com> | 2005-03-28 01:08:02 +0000 |
| commit | 462bfbfa899143d92476cc8b1e2e86df2b4b7432 (patch) | |
| tree | f36b659c537ab16d40d04281096bf98084fcc346 /command/upload.py | |
| parent | 31e173cb4da568d9a71645bfd46d416b6d0d406b (diff) | |
| download | external_python_setuptools-462bfbfa899143d92476cc8b1e2e86df2b4b7432.tar.gz external_python_setuptools-462bfbfa899143d92476cc8b1e2e86df2b4b7432.tar.bz2 external_python_setuptools-462bfbfa899143d92476cc8b1e2e86df2b4b7432.zip | |
Whitespace normalization.
Diffstat (limited to 'command/upload.py')
| -rw-r--r-- | command/upload.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/command/upload.py b/command/upload.py index d1d5ec60..7b08336c 100644 --- a/command/upload.py +++ b/command/upload.py @@ -133,7 +133,7 @@ class upload(Command): schema, netloc, url, params, query, fragments = \ urlparse.urlparse(self.repository) assert not params and not query and not fragments - if schema == 'http': + if schema == 'http': http = httplib.HTTPConnection(netloc) elif schema == 'https': http = httplib.HTTPSConnection(netloc) @@ -145,7 +145,7 @@ class upload(Command): try: http.connect() http.putrequest("POST", url) - http.putheader('Content-type', + http.putheader('Content-type', 'multipart/form-data; boundary=%s'%boundary) http.putheader('Content-length', str(len(body))) http.putheader('Authorization', auth) @@ -157,11 +157,10 @@ class upload(Command): r = http.getresponse() if r.status == 200: - self.announce('Server response (%s): %s' % (r.status, r.reason), + self.announce('Server response (%s): %s' % (r.status, r.reason), log.INFO) else: - self.announce('Upload failed (%s): %s' % (r.status, r.reason), + self.announce('Upload failed (%s): %s' % (r.status, r.reason), log.ERROR) if self.show_response: print '-'*75, r.read(), '-'*75 - |
