[issue11970] distutils command 'upload' crashes when --show-response is selected

2011-05-04 Thread Éric Araujo
Changes by Éric Araujo : -- stage: -> committed/rejected superseder: -> "python setup.py sdist upload --show-response" can fail with "UnboundLocalError: local variable 'result' referenced before assignment" ___ Python tracker

[issue11970] distutils command 'upload' crashes when --show-response is selected

2011-05-04 Thread Chris Rose
Chris Rose added the comment: ... oh, except I'm an idiot, and I think I'm reading tip code there. Yep, I'm an idiot. Okay, but this is still a dupe of #10367 -- resolution: invalid -> duplicate ___ Python tracker

[issue11970] distutils command 'upload' crashes when --show-response is selected

2011-05-04 Thread Chris Rose
Chris Rose added the comment: No, not 100% sure, but my read of the 2.7 branch code certainly seemed to suggest that it was fixed. in distutil/commands/upload.py: Line 193 gets the response unconditionally as 'r' from the http object Line 201 uses 'r' to show the response. I might be missin

[issue11970] distutils command 'upload' crashes when --show-response is selected

2011-05-04 Thread Éric Araujo
Éric Araujo added the comment: Are you sure? This looks like #10367 (unsolved yet), not #9199 (fixed). -- ___ Python tracker ___ ___

[issue11970] distutils command 'upload' crashes when --show-response is selected

2011-05-03 Thread Chris Rose
Chris Rose added the comment: I can see that this is only an error in the 2.7.1 release, and is fixed in distutils on the 2.7 branch (along with other bugs, too, from what I can see.) I'm closing it as invalid, given that. -- resolution: -> invalid status: open -> closed ___

[issue11970] distutils command 'upload' crashes when --show-response is selected

2011-05-01 Thread Chris Rose
New submission from Chris Rose : When running distutils like so: .tox/py27/bin/python setup.py -v bdist_egg upload --show-response Eventually, after everything else spools by, this pops up: Using PyPI login from /Users/offline/.pypirc Submitting dist/PyHamcrest-1.5-py2.7.egg to http://pypi.p