Phillip J. Eby <p...@telecommunity.com> added the comment: To better show what the problem is, here's a change that would fix the problem (albeit in an ugly way):
--- upload.py 2010-07-07 20:16:33.000000000 -0400 +++ /home/pje/upload.new 2010-11-09 14:30:21.000000000 -0500 @@ -167,6 +167,9 @@ request = Request(self.repository, data=body, headers=headers) + + result = None + # send the data try: result = urlopen(request) @@ -186,4 +189,4 @@ self.announce('Upload failed (%s): %s' % (status, reason), log.ERROR) if self.show_response: - self.announce('-'*75, result.read(), '-'*75) + self.announce('-'*75, result.read() if result is not None else 'ERROR', '-'*75) ---------- nosy: +pje resolution: duplicate -> stage: committed/rejected -> needs patch status: closed -> open _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10367> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com