http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9227
Revision: 9227 Author: xqt Date: 2011-05-09 19:10:46 +0000 (Mon, 09 May 2011) Log Message: ----------- py 2.4 has no keyword arguments for __import__(). Fix for bug #3199823
Modified Paths: -------------- trunk/pywikipedia/pywikibot/i18n.py
Modified: trunk/pywikipedia/pywikibot/i18n.py =================================================================== --- trunk/pywikipedia/pywikibot/i18n.py 2011-05-09 18:42:05 UTC (rev 9226) +++ trunk/pywikipedia/pywikibot/i18n.py 2011-05-09 19:10:46 UTC (rev 9227) @@ -223,7 +223,7 @@ import table. """ package = twtitle.split("-")[0] - transdict = getattr(__import__("i18n", fromlist=[package]), package).msg + transdict = getattr(__import__("i18n", {}, {}, [package]), package).msg
# If a site is given instead of a code, use its language if hasattr(code, 'lang'): @@ -263,7 +263,7 @@ import table. """ package = twtitle.split("-")[0] - transdict = getattr(__import__("i18n", fromlist=[package]), package).msg + transdict = getattr(__import__("i18n", {}, {}, [package]), package).msg # If a site is given instead of a code, use its language if hasattr(code, 'lang'): code = code.lang
pywikipedia-svn@lists.wikimedia.org