Revision: 4022 Author: btongminh Date: 2007-08-09 19:13:07 +0000 (Thu, 09 Aug 2007)
Log Message: ----------- Add bug section; Fix bug that changes replace into delete; Flush the standard streams on exit;
Modified Paths: -------------- trunk/pywikipedia/delinker.py
Modified: trunk/pywikipedia/delinker.py =================================================================== --- trunk/pywikipedia/delinker.py 2007-08-09 17:33:37 UTC (rev 4021) +++ trunk/pywikipedia/delinker.py 2007-08-09 19:13:07 UTC (rev 4022) @@ -29,6 +29,10 @@ # TODO: # * Don't replace within <nowiki /> tags # * Make as many config settings site dependend +# BUGS: +# * There is a problem with images in the es.wikisource project namespace. +# The exact problem is described somewhere in Bryan's IRC logs, but it is +# unknown where exactly.
import sys, os, threading, time import traceback @@ -130,7 +134,7 @@ if skipped_images: time.sleep(self.CommonsDelinker.config['timeout']) - return self.delink_image(image, skipped_images, timestamp, admin, reason) + return self.delink_image(image, skipped_images, timestamp, admin, reason, replacement) elif replacement: # Let them know that we are done replacing. self.CommonsDelinker.Loggers.append((timestamp, image, replacement)) @@ -793,3 +797,6 @@ finally: output(u'Stopping CommonsDelinker') wikipedia.stopme() + # Flush the standard streams + sys.stdout.flush() + sys.stderr.flush()
pywikipedia-l@lists.wikimedia.org