Revision: 6884 Author: nicdumz Date: 2009-05-14 03:10:16 +0000 (Thu, 14 May 2009)
Log Message: ----------- The namespace is not set if namespace() returns None and if there's no default
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2009-05-14 03:00:11 UTC (rev 6883) +++ trunk/pywikipedia/wikipedia.py 2009-05-14 03:10:16 UTC (rev 6884) @@ -3097,8 +3097,8 @@ try: dflt = self.site.family.namespace('_default', id) except KeyError: - dflt = None - if dflt is None: + dflt = u'' + if not ns and not dflt: flag = u"is not set, but should be '%s'" % nshdr elif dflt == ns: flag = u"is set to default ('%s'), but should be '%s'" % (ns, nshdr)
pywikipedia-svn@lists.wikimedia.org