http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10787
Revision: 10787 Author: russblau Date: 2012-12-11 22:13:15 +0000 (Tue, 11 Dec 2012) Log Message: ----------- add default value for logtype
Modified Paths: -------------- branches/rewrite/pywikibot/data/api.py
Modified: branches/rewrite/pywikibot/data/api.py =================================================================== --- branches/rewrite/pywikibot/data/api.py 2012-12-11 11:43:46 UTC (rev 10786) +++ branches/rewrite/pywikibot/data/api.py 2012-12-11 22:13:15 UTC (rev 10787) @@ -844,7 +844,7 @@ Like ListGenerator, but specialized for listaction="logevents" : yields LogEntry objects instead of dicts. """ - def __init__(self, logtype, **kwargs): + def __init__(self, logtype=None, **kwargs): ListGenerator.__init__(self, "logevents", **kwargs)
import logentries