http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11252
Revision: 11252 Author: xqt Date: 2013-03-24 12:53:12 +0000 (Sun, 24 Mar 2013) Log Message: ----------- code cleanup: remove old hack from r4211
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2013-03-24 11:34:13 UTC (rev 11251) +++ trunk/pywikipedia/wikipedia.py 2013-03-24 12:53:12 UTC (rev 11252) @@ -5907,13 +5907,8 @@ raise NoSuchSite("Language %s in family %s is obsolete" % (self.__code, self.__family.name)) if self.__code not in self.languages(): - if self.__code == 'zh-classic' and \ - 'zh-classical' in self.languages(): - self.__code = 'zh-classical' - # database hack (database is varchar[10], so zh-classical - # is cut to zh-classic) - elif self.__family.name in self.__family.langs.keys() and \ - len(self.__family.langs) == 1: + if self.__family.name in self.__family.langs.keys() and \ + len(self.__family.langs) == 1: oldcode = self.__code self.__code = self.__family.name if self.__family == pywikibot.config.family \
pywikipedia-svn@lists.wikimedia.org