http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9470
Revision: 9470
Author: xqt
Date: 2011-08-29 05:10:31 +0000 (Mon, 29 Aug 2011)
Log Message:
-----------
fix lang assingment reported by bug #3400040
Modified Paths:
--------------
trunk/pywikipedia/pywikibot/i18n.py
Modified: trunk/pywikipedia/pywikibot/i18n.py
===================================================================
--- trunk/pywikipedia/pywikibot/i18n.py 2011-08-28 20:55:01 UTC (rev 9469)
+++ trunk/pywikipedia/pywikibot/i18n.py 2011-08-29 05:10:31 UTC (rev 9470)
@@ -248,6 +248,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