http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11010
Revision: 11010 Author: xqt Date: 2013-01-27 17:39:51 +0000 (Sun, 27 Jan 2013) Log Message: ----------- fix for r10987
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2013-01-27 14:45:08 UTC (rev 11009) +++ trunk/pywikipedia/wikipedia.py 2013-01-27 17:39:51 UTC (rev 11010) @@ -2717,7 +2717,7 @@ for match in Rlink.finditer(thistxt): title = match.group('title') title = title.replace("_", " ").strip(" ") - if self.namespace() in self.site.namespacesWithSubpage: + if self.namespace() in self.site.family.namespacesWithSubpage: # convert relative link to absolute link if title.startswith(".."): parts = self.title().split('/')
pywikipedia-svn@lists.wikimedia.org