http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10998
Revision: 10998 Author: xqt Date: 2013-01-27 13:16:41 +0000 (Sun, 27 Jan 2013) Log Message: ----------- do not overwrite a given name
Modified Paths: -------------- trunk/pywikipedia/family.py
Modified: trunk/pywikipedia/family.py =================================================================== --- trunk/pywikipedia/family.py 2013-01-27 13:06:06 UTC (rev 10997) +++ trunk/pywikipedia/family.py 2013-01-27 13:16:41 UTC (rev 10998) @@ -18,7 +18,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