Revision: 8135 Author: xqt Date: 2010-04-28 14:33:06 +0000 (Wed, 28 Apr 2010)
Log Message: ----------- Bugfix: set throttle.getDelay(write=True)
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2010-04-28 06:03:43 UTC (rev 8134) +++ trunk/pywikipedia/wikipedia.py 2010-04-28 14:33:06 UTC (rev 8135) @@ -7517,7 +7517,7 @@ remainingPages = page_put_queue.qsize() - 1 # -1 because we added a None element to stop the queue remainingSeconds = datetime.timedelta( - seconds=(remainingPages * put_throttle.getDelay(wait=True))) + seconds=(remainingPages * put_throttle.getDelay(True))) return (remainingPages, remainingSeconds)
page_put_queue.put((None, None, None, None, None, None, None))
pywikipedia-svn@lists.wikimedia.org