http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11068
Revision: 11068 Author: xqt Date: 2013-02-10 15:42:28 +0000 (Sun, 10 Feb 2013) Log Message: ----------- wikidata does not trancludes itself, update from r11060
Modified Paths: -------------- branches/rewrite/pywikibot/families/wikidata_family.py
Modified: branches/rewrite/pywikibot/families/wikidata_family.py =================================================================== --- branches/rewrite/pywikibot/families/wikidata_family.py 2013-02-10 15:41:55 UTC (rev 11067) +++ branches/rewrite/pywikibot/families/wikidata_family.py 2013-02-10 15:42:28 UTC (rev 11068) @@ -21,5 +21,8 @@ the site opject is the repository itself, see Site.is_data_repository()
""" - return ('wikidata', - 'wikidata') if code == 'wikidata' else ('repo', 'wikidata') + if transcluded: + return(None, None) + else: + return ('wikidata', + 'wikidata') if code == 'wikidata' else ('repo', 'wikidata')