[Pywikipedia-l] SVN: [4735] trunk/pywikipedia/redirect.py

russblau at svn.wikimedia.org russblau at svn.wikimedia.org
Wed Dec 19 13:56:40 UTC 2007


Revision: 4735
Author:   russblau
Date:     2007-12-19 13:56:39 +0000 (Wed, 19 Dec 2007)

Log Message:
-----------
Fixing bug #1853805; thanks nicdumz for the patch!

Modified Paths:
--------------
    trunk/pywikipedia/redirect.py

Modified: trunk/pywikipedia/redirect.py
===================================================================
--- trunk/pywikipedia/redirect.py	2007-12-18 18:09:38 UTC (rev 4734)
+++ trunk/pywikipedia/redirect.py	2007-12-19 13:56:39 UTC (rev 4735)
@@ -338,7 +338,7 @@
     xmlFilename = None
     # Which namespace should be processed when using a XML dump
     # default to -1 which means all namespaces will be processed
-    namespace = None
+    namespaces = []
     # at which redirect shall we start searching double redirects again (only with dump)
     # default to -1 which means all redirects are checked
     offset = -1
@@ -368,7 +368,7 @@
     if not action:
         wikipedia.showHelp('redirect')
     else:
-        gen = RedirectGenerator(xmlFilename, namespace, offset)
+        gen = RedirectGenerator(xmlFilename, namespaces, offset)
         bot = RedirectRobot(action, gen, always)
         bot.run()
 





More information about the Pywikipedia-l mailing list