[Pywikipedia-l] SVN: [6261] trunk/pywikipedia/wikipedia.py

russblau at svn.wikimedia.org russblau at svn.wikimedia.org
Thu Jan 15 13:54:30 UTC 2009


Revision: 6261
Author:   russblau
Date:     2009-01-15 13:54:29 +0000 (Thu, 15 Jan 2009)

Log Message:
-----------
Fix category-redirect bug

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

Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py	2009-01-15 05:15:14 UTC (rev 6260)
+++ trunk/pywikipedia/wikipedia.py	2009-01-15 13:54:29 UTC (rev 6261)
@@ -1011,8 +1011,9 @@
                         self._redirarg = Page(self.site(), item[1][0],
                                               defaultNamespace=14).title()
                         # treat first template arg as name of target category
-                    else:
-                        self._catredirect = False
+                        break
+                else:
+                    self._catredirect = False
         return self._catredirect
 
     def isEmpty(self):





More information about the Pywikipedia-l mailing list