http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9766
Revision: 9766 Author: xqt Date: 2011-11-16 13:54:26 +0000 (Wed, 16 Nov 2011) Log Message: ----------- skip user/user talk namespace in translateAndCapitalizeNamespaces yet
Modified Paths: -------------- trunk/pywikipedia/cosmetic_changes.py
Modified: trunk/pywikipedia/cosmetic_changes.py =================================================================== --- trunk/pywikipedia/cosmetic_changes.py 2011-11-16 13:38:06 UTC (rev 9765) +++ trunk/pywikipedia/cosmetic_changes.py 2011-11-16 13:54:26 UTC (rev 9766) @@ -319,6 +319,9 @@ if not family.isDefinedNSLanguage(nsNumber, self.site.lang): # Skip undefined namespaces continue + if nsNumber in (2, 3): + # Skip user namespace, maybe gender is used + continue namespaces = list(self.site.namespace(nsNumber, all = True)) thisNs = namespaces.pop(0) if nsNumber == 6 and family.name == 'wikipedia' and \
pywikipedia-svn@lists.wikimedia.org