http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10969
Revision: 10969 Author: xqt Date: 2013-01-23 12:55:29 +0000 (Wed, 23 Jan 2013) Log Message: ----------- Don't search for a language link at wikidata if the site is the repository itself
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2013-01-23 11:29:02 UTC (rev 10968) +++ trunk/pywikipedia/wikipedia.py 2013-01-23 12:55:29 UTC (rev 10969) @@ -4068,7 +4068,8 @@ self._originTitle = title source = self._originSite.data_repository() Page.__init__(self, source, title, *args, **kwargs) - self._title = None + if not self._originSite is source: + self._title = None
def setitem(self, summary=None, watchArticle=False, minorEdit=True, newPage=False, token=None, newToken=False, sysop=False,