http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10247
Revision: 10247 Author: xqt Date: 2012-05-24 14:05:21 +0000 (Thu, 24 May 2012) Log Message: ----------- lastRev['*'] may be False. Test it.
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2012-05-24 13:53:07 UTC (rev 10246) +++ trunk/pywikipedia/wikipedia.py 2012-05-24 14:05:21 UTC (rev 10247) @@ -781,7 +781,7 @@ raise BadTitle('BadTitle: %s' % self) elif 'revisions' in pageInfo: #valid Title lastRev = pageInfo['revisions'][0] - if lastRev['*'] is not None: + if lastRev['*']: textareaFound = True # I got page date with 'revisions' in pageInfo but # lastRev['*'] = False instead of the content. The Page itself was
pywikipedia-svn@lists.wikimedia.org