[Pywikipedia-svn] SVN: [7335] trunk/pywikipedia/welcome.py
alexsh at svn.wikimedia.org
alexsh at svn.wikimedia.org
Tue Sep 29 17:58:52 UTC 2009
Revision: 7335
Author: alexsh
Date: 2009-09-29 17:58:52 +0000 (Tue, 29 Sep 2009)
Log Message:
-----------
remove has_key for deprecated
Modified Paths:
--------------
trunk/pywikipedia/welcome.py
Modified: trunk/pywikipedia/welcome.py
===================================================================
--- trunk/pywikipedia/welcome.py 2009-09-29 17:45:35 UTC (rev 7334)
+++ trunk/pywikipedia/welcome.py 2009-09-29 17:58:52 UTC (rev 7335)
@@ -680,12 +680,12 @@
showStatus(3)
wikipedia.output(u'%s has been created automatically.' % x['user'])
continue
- if x.has_key("userhidden"):
+ if "userhidden" in x:
continue
yield userlib.User(self.site, x['user'])
- if count < globalvar.queryLimit and lev.has_key('query-continue'):
+ if count < globalvar.queryLimit and 'query-continue' in lev:
params['lestart'] = lev['query-continue']['logevents']['lestart']
else:
break
More information about the Pywikipedia-svn
mailing list