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

russblau at svn.wikimedia.org russblau at svn.wikimedia.org
Thu Jan 29 22:56:47 UTC 2009


Revision: 6314
Author:   russblau
Date:     2009-01-29 22:56:46 +0000 (Thu, 29 Jan 2009)

Log Message:
-----------
minor bugs in r6313

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

Modified: trunk/pywikipedia/redirect.py
===================================================================
--- trunk/pywikipedia/redirect.py	2009-01-29 22:53:53 UTC (rev 6313)
+++ trunk/pywikipedia/redirect.py	2009-01-29 22:56:46 UTC (rev 6314)
@@ -292,7 +292,7 @@
         # this will run forever, until user interrupts it
         import datetime
 
-        if not self.offset:
+        if self.offset <= 0:
             self.offset = 1
         offsetpattern = re.compile(
 r"""\(<a href="/w/index\.php\?title=Special:Log&amp;offset=(\d+)&amp;limit=500&amp;type=move" title="Special:Log" rel="next">older 500</a>\)""")
@@ -308,7 +308,7 @@
             try:
                 move_list = site.getUrl(move_url)
                 if wikipedia.verbose:
-                    wikipedia.output(u"[%s]" % offset)
+                    wikipedia.output(u"[%s]" % offset_time)
             except:
                 import traceback
                 wikipedia.output(unicode(traceback.format_exc()))





More information about the Pywikipedia-l mailing list