Revision: 7980 Author: xqt Date: 2010-03-06 10:27:46 +0000 (Sat, 06 Mar 2010)
Log Message: ----------- Bugfix for #2963405
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2010-03-05 23:38:37 UTC (rev 7979) +++ trunk/pywikipedia/wikipedia.py 2010-03-06 10:27:46 UTC (rev 7980) @@ -2081,7 +2081,7 @@ return self._putPageOld(text, comment, watchArticle, minorEdit, newPage, token, newToken, sysop, captcha=solve)
# We are expecting a 302 to the action=view page. I'm not sure why this was removed in r5019 - if response.status != 302 and data.strip() != u"": + if response.code != 302 and data.strip() != u"": # Something went wrong, and we don't know what. Show the # HTML code that hopefully includes some error message. output(u"ERROR: Unexpected response from wiki server.")
pywikipedia-svn@lists.wikimedia.org