[Pywikipedia-l] SVN: [6284] branches/rewrite/pywikibot

russblau at svn.wikimedia.org russblau at svn.wikimedia.org
Fri Jan 23 14:30:59 UTC 2009


Revision: 6284
Author:   russblau
Date:     2009-01-23 14:30:58 +0000 (Fri, 23 Jan 2009)

Log Message:
-----------
always test before committing!

Modified Paths:
--------------
    branches/rewrite/pywikibot/bot.py
    branches/rewrite/pywikibot/data/api.py

Modified: branches/rewrite/pywikibot/bot.py
===================================================================
--- branches/rewrite/pywikibot/bot.py	2009-01-23 14:21:17 UTC (rev 6283)
+++ branches/rewrite/pywikibot/bot.py	2009-01-23 14:30:58 UTC (rev 6284)
@@ -245,9 +245,9 @@
             showHelp()
             sys.exit(0)
         elif arg.startswith('-family:'):
-            config.family = arg[len("-family:" : ]
+            config.family = arg[len("-family:") : ]
         elif arg.startswith('-lang:'):
-            config.mylang = arg[len("-lang:" : ]
+            config.mylang = arg[len("-lang:") : ]
         elif arg.startswith("-user:"):
             username = arg[len("-user:") : ]
         elif arg.startswith('-putthrottle:'):
@@ -262,7 +262,7 @@
         elif arg.startswith('-log:'):
             if moduleName not in config.log:
                 config.log.append(moduleName)
-            config.logfilename = arg[len("-log:" : ]
+            config.logfilename = arg[len("-log:") : ]
         elif arg == '-nolog':
             if moduleName in config.log:
                 config.log.remove(moduleName)

Modified: branches/rewrite/pywikibot/data/api.py
===================================================================
--- branches/rewrite/pywikibot/data/api.py	2009-01-23 14:21:17 UTC (rev 6283)
+++ branches/rewrite/pywikibot/data/api.py	2009-01-23 14:30:58 UTC (rev 6284)
@@ -158,7 +158,7 @@
                     inprop = self.params.get("inprop", [])
                     info = set(info + ["protection", "talkid", "subjectid"])
                     self.params["info"] = list(info)
-        if "maxlag" not in self.params:
+        if "maxlag" not in self.params and config.maxlag:
             self.params["maxlag"] = [str(config.maxlag)]
         if "format" not in self.params:
             self.params["format"] = ["json"]





More information about the Pywikipedia-l mailing list