http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10487
Revision: 10487 Author: xqt Date: 2012-08-16 08:14:41 +0000 (Thu, 16 Aug 2012) Log Message: ----------- remove python 2.2 stuff
Modified Paths: -------------- trunk/pywikipedia/BeautifulSoup.py trunk/pywikipedia/casechecker.py trunk/pywikipedia/copyright.py trunk/pywikipedia/redirect.py trunk/pywikipedia/replace.py trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/BeautifulSoup.py =================================================================== --- trunk/pywikipedia/BeautifulSoup.py 2012-08-16 05:53:42 UTC (rev 10486) +++ trunk/pywikipedia/BeautifulSoup.py 2012-08-16 08:14:41 UTC (rev 10487) @@ -76,7 +76,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE, DAMMIT.
""" -from __future__ import generators
__author__ = "Leonard Richardson (leonardr@segfault.org)" __version__ = "3.2.0"
Modified: trunk/pywikipedia/casechecker.py =================================================================== --- trunk/pywikipedia/casechecker.py 2012-08-16 05:53:42 UTC (rev 10486) +++ trunk/pywikipedia/casechecker.py 2012-08-16 08:14:41 UTC (rev 10487) @@ -7,7 +7,6 @@ # # Permutations code was taken from http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/190465 # -from __future__ import generators
def xuniqueCombinations(items, n): if n==0: yield []
Modified: trunk/pywikipedia/copyright.py =================================================================== --- trunk/pywikipedia/copyright.py 2012-08-16 05:53:42 UTC (rev 10486) +++ trunk/pywikipedia/copyright.py 2012-08-16 08:14:41 UTC (rev 10487) @@ -82,7 +82,6 @@ # Distributed under the terms of the MIT license. #
-from __future__ import generators import re, codecs, os, time, urllib, urllib2, httplib import wikipedia as pywikibot import pagegenerators, config
Modified: trunk/pywikipedia/redirect.py =================================================================== --- trunk/pywikipedia/redirect.py 2012-08-16 05:53:42 UTC (rev 10486) +++ trunk/pywikipedia/redirect.py 2012-08-16 08:14:41 UTC (rev 10487) @@ -51,7 +51,6 @@ -always Don't prompt you for each replacement.
""" -from __future__ import generators # # (C) Daniel Herding, 2004. # (C) Purodha Blissenbach, 2009.
Modified: trunk/pywikipedia/replace.py =================================================================== --- trunk/pywikipedia/replace.py 2012-08-16 05:53:42 UTC (rev 10486) +++ trunk/pywikipedia/replace.py 2012-08-16 08:14:41 UTC (rev 10487) @@ -159,7 +159,6 @@
Please type "replace.py -help | more" if you can't read the top of the help. """ -from __future__ import generators # # (C) Daniel Herding & the Pywikipedia team, 2004-2012 #
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2012-08-16 05:53:42 UTC (rev 10486) +++ trunk/pywikipedia/wikipedia.py 2012-08-16 08:14:41 UTC (rev 10487) @@ -113,7 +113,6 @@ and thus not slow down other bot threads anymore.
""" -from __future__ import generators # # (C) Pywikipedia bot team, 2003-2012 #