http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10248
Revision: 10248 Author: xqt Date: 2012-05-24 14:49:23 +0000 (Thu, 24 May 2012) Log Message: ----------- Enable empty pages, fix for r10247
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2012-05-24 14:05:21 UTC (rev 10247) +++ trunk/pywikipedia/wikipedia.py 2012-05-24 14:49:23 UTC (rev 10248) @@ -781,7 +781,7 @@ raise BadTitle('BadTitle: %s' % self) elif 'revisions' in pageInfo: #valid Title lastRev = pageInfo['revisions'][0] - if lastRev['*']: + if isinstance(type(lastRev['*'], basestring): 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