http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10101
Revision: 10101 Author: xqt Date: 2012-04-09 12:47:22 +0000 (Mon, 09 Apr 2012) Log Message: ----------- fix for local identifier; follow-up for r10100
Modified Paths: -------------- trunk/pywikipedia/pagegenerators.py
Modified: trunk/pywikipedia/pagegenerators.py =================================================================== --- trunk/pywikipedia/pagegenerators.py 2012-04-09 12:20:35 UTC (rev 10100) +++ trunk/pywikipedia/pagegenerators.py 2012-04-09 12:47:22 UTC (rev 10101) @@ -1032,8 +1032,8 @@ # convert namespace names to namespace numbers if site is None: site = pywikibot.getSite() - if isinstance(namespace, (int, basestring)): - namespace = [namespace] + if isinstance(namespaces, (int, basestring)): + namespaces = [namespaces] for i in xrange(len(namespaces)): ns = namespaces[i] if isinstance(ns, basestring):
pywikipedia-svn@lists.wikimedia.org