http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9209
Revision: 9209 Author: xqt Date: 2011-05-02 03:56:15 +0000 (Mon, 02 May 2011) Log Message: ----------- forgotten "else"; follow up for r9208
Modified Paths: -------------- trunk/pywikipedia/query.py
Modified: trunk/pywikipedia/query.py =================================================================== --- trunk/pywikipedia/query.py 2011-05-02 03:31:55 UTC (rev 9208) +++ trunk/pywikipedia/query.py 2011-05-02 03:56:15 UTC (rev 9209) @@ -268,7 +268,7 @@ if u'|' in item: raise wikipedia.Error(u"item '%s' contains '|' symbol" % item) encList += ToUtf8(item) + u'|' - if type(item) == 'int': + elif type(item) == 'int': encList += ToUtf8(item) + u'|' elif isinstance(item, wikipedia.Page): encList += ToUtf8(item.title()) + u'|'