http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11005
Revision: 11005 Author: xqt Date: 2013-01-27 14:15:09 +0000 (Sun, 27 Jan 2013) Log Message: ----------- do not overwrite a given name, update from trunk r10998
Modified Paths: -------------- branches/rewrite/pywikibot/family.py
Modified: branches/rewrite/pywikibot/family.py =================================================================== --- branches/rewrite/pywikibot/family.py 2013-01-27 14:13:12 UTC (rev 11004) +++ branches/rewrite/pywikibot/family.py 2013-01-27 14:15:09 UTC (rev 11005) @@ -20,7 +20,9 @@ # Parent class for all wiki families class Family(object): def __init__(self): - self.name = None + if not hasattr(self, 'name'): + self.name = None + # For interwiki sorting order see # http://meta.wikimedia.org/wiki/Interwiki_sorting_order
pywikipedia-svn@lists.wikimedia.org