Revision: 7621 Author: xqt Date: 2009-11-10 13:50:05 +0000 (Tue, 10 Nov 2009)
Log Message: ----------- response usage to correct attribute(reason->msg) for urllib2 (bugfix for #2895184)
Modified Paths: -------------- trunk/pywikipedia/upload.py
Modified: trunk/pywikipedia/upload.py =================================================================== --- trunk/pywikipedia/upload.py 2009-11-10 07:05:39 UTC (rev 7620) +++ trunk/pywikipedia/upload.py 2009-11-10 13:50:05 UTC (rev 7621) @@ -361,7 +361,7 @@ except: pass wikipedia.output(u'%s\n\n' % returned_html) - wikipedia.output(u'%i %s' % (response.code, response.reason)) + wikipedia.output(u'%i %s' % (response.code, response.msg))
if self.targetSite.mediawiki_message('uploadwarning') in returned_html: answer = wikipedia.inputChoice(u"You have recevied an upload warning message. Ignore?", ['Yes', 'No'], ['y', 'N'], 'N')
pywikipedia-svn@lists.wikimedia.org