http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9214
Revision: 9214 Author: xqt Date: 2011-05-04 20:40:36 +0000 (Wed, 04 May 2011) Log Message: ----------- 'int' is not a int type; follow-up for r9208, r9209, bugfix for bug #3295288 and bug #3297387
Modified Paths: -------------- trunk/pywikipedia/query.py
Modified: trunk/pywikipedia/query.py =================================================================== --- trunk/pywikipedia/query.py 2011-05-04 04:40:11 UTC (rev 9213) +++ trunk/pywikipedia/query.py 2011-05-04 20:40:36 UTC (rev 9214) @@ -255,7 +255,9 @@ return item
def ListToParam( list ): - """Convert a list of unicode strings into a UTF8 string separated by the '|' symbols + """Convert a list of unicode strings into a UTF8 string separated by the '|' + symbols + """ list = ConvToList( list ) if len(list) == 0: @@ -268,7 +270,7 @@ if u'|' in item: raise wikipedia.Error(u"item '%s' contains '|' symbol" % item) encList += ToUtf8(item) + u'|' - elif type(item) == 'int': + elif type(item) == int: encList += ToUtf8(item) + u'|' elif isinstance(item, wikipedia.Page): encList += ToUtf8(item.title()) + u'|'