http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9471
Revision: 9471 Author: xqt Date: 2011-08-29 05:13:04 +0000 (Mon, 29 Aug 2011) Log Message: ----------- fix lang assingment reported by bug #3400040; update from trunk r9470
Modified Paths: -------------- branches/rewrite/pywikibot/i18n.py
Modified: branches/rewrite/pywikibot/i18n.py =================================================================== --- branches/rewrite/pywikibot/i18n.py 2011-08-29 05:10:31 UTC (rev 9470) +++ branches/rewrite/pywikibot/i18n.py 2011-08-29 05:13:04 UTC (rev 9471) @@ -237,6 +237,8 @@ elif type(code) == list: lang = code.pop() code_needed = True + else: + lang = code
# There are two possible failure modes: the translation dict might not have # the language altogether, or a specific key could be untranslated. Both