http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11253
Revision: 11253 Author: xqt Date: 2013-03-24 12:54:58 +0000 (Sun, 24 Mar 2013) Log Message: ----------- code cleanup: remove old hack from r4211, update from trunk r11252
Modified Paths: -------------- branches/rewrite/pywikibot/site.py
Modified: branches/rewrite/pywikibot/site.py =================================================================== --- branches/rewrite/pywikibot/site.py 2013-03-24 12:53:12 UTC (rev 11252) +++ branches/rewrite/pywikibot/site.py 2013-03-24 12:54:58 UTC (rev 11253) @@ -128,13 +128,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