Revision: 7104 Author: valhallasw Date: 2009-08-04 01:49:38 +0000 (Tue, 04 Aug 2009)
Log Message: ----------- (Ugly) fix for bug #2831667. See http://www.mail-archive.com/python-dev@python.org/msg12668.html and follow-ups for more information.
Modified Paths: -------------- trunk/pywikipedia/pagegenerators.py
Modified: trunk/pywikipedia/pagegenerators.py =================================================================== --- trunk/pywikipedia/pagegenerators.py 2009-08-04 01:34:43 UTC (rev 7103) +++ trunk/pywikipedia/pagegenerators.py 2009-08-04 01:49:38 UTC (rev 7104) @@ -164,7 +164,14 @@ import wikipedia, date, catlib import config
+# For python 2.4 compatibility +# see http://www.mail-archive.com/python-dev@python.org/msg12668.html +try: + GeneratorExit +except NameError: + class GeneratorExit(Exception): pass
+ class ThreadedGenerator(threading.Thread): """Look-ahead generator class.
pywikipedia-svn@lists.wikimedia.org