Revision: 6738 Author: shizhao Date: 2009-04-27 14:32:03 +0000 (Mon, 27 Apr 2009)
Log Message: ----------- fix newimages(), "!= None" to "is not None"
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2009-04-27 13:42:03 UTC (rev 6737) +++ trunk/pywikipedia/wikipedia.py 2009-04-27 14:32:03 UTC (rev 6738) @@ -5295,10 +5295,10 @@ 'letype' :'upload', 'lelimit' :int(number), } - if lestart != None: params['lestart'] = lestart - if leend != None: params['leend'] = leend - if leend != None: params['leuser'] = leuser - if leend != None: params['letitle'] = letitle + if lestart is not None: params['lestart'] = lestart + if leend is not None: params['leend'] = leend + if leend is not None: params['leuser'] = leuser + if leend is not None: params['letitle'] = letitle while True: data = query.GetData(params, useAPI = True, encodeTitle = False)
pywikipedia-svn@lists.wikimedia.org