Revision: 6883 Author: nicdumz Date: 2009-05-14 03:00:11 +0000 (Thu, 14 May 2009)
Log Message: ----------- Using "or" construct instead of testing manually the value
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2009-05-14 02:59:18 UTC (rev 6882) +++ trunk/pywikipedia/wikipedia.py 2009-05-14 03:00:11 UTC (rev 6883) @@ -3092,9 +3092,7 @@ for id in ids: nshdr = header.namespaces[id] if self.site.family.isDefinedNSLanguage(id, lang): - ns = self.site.namespace(id) - if ns is None: - ns = u'' + ns = self.site.namespace(id) or u'' if ns != nshdr: try: dflt = self.site.family.namespace('_default', id)
pywikipedia-svn@lists.wikimedia.org