http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10755
Revision: 10755 Author: xqt Date: 2012-12-01 07:47:01 +0000 (Sat, 01 Dec 2012) Log Message: ----------- wikipedia maybe imported as pywikibot, catlib does not have to be imported twice.
Modified Paths: -------------- trunk/pywikipedia/noreferences.py
Modified: trunk/pywikipedia/noreferences.py =================================================================== --- trunk/pywikipedia/noreferences.py 2012-12-01 07:43:04 UTC (rev 10754) +++ trunk/pywikipedia/noreferences.py 2012-12-01 07:47:01 UTC (rev 10755) @@ -37,7 +37,7 @@ __version__='$Id$'
import re, sys -import wikipedia as pywikibot +import pywikibot from pywikibot import i18n import pagegenerators, catlib import editarticle @@ -675,7 +675,6 @@ except: pass else: - import catlib if not namespaces: namespaces = [0] cat = catlib.Category(site, "%s:%s" % (site.category_namespace(),
pywikipedia-svn@lists.wikimedia.org