This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, hagen, loewis, tarek
Date 2008-11-19.12:00:17
SpamBayes Score 2.4190147e-06
Marked as misclassified No
Message-id <1227096022.43.0.726815867466.issue4338@psf.upfronthosting.co.za>
In-reply-to
Content
To correct the reported problem, 3 lines are indeed enough.

I just wanted to test my changes, so I ran "setup.py bdist upload" on my
favourite package, even if I expect it to fail at the end because I
don't have a valid PyPI account.

Here are the problems I encountered:
- io.StringIO is used but "import io" is missing
- http = http.client.HTTPConnection() fails because the local variable
has the same name as the imported module
- the http body must be a bytes string

I agree that the change around http.request() is not needed.
Here is another patch with less changes.
It is also more correct that the previous one, now I receive a http 401
error which means that the request was at least understood by the server.
History
Date User Action Args
2008-11-19 12:00:22amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, loewis, tarek, hagen
2008-11-19 12:00:22amaury.forgeotdarcsetmessageid: <1227096022.43.0.726815867466.issue4338@psf.upfronthosting.co.za>
2008-11-19 12:00:21amaury.forgeotdarclinkissue4338 messages
2008-11-19 12:00:20amaury.forgeotdarccreate