summaryrefslogtreecommitdiff
path: root/Lib/gettext.py
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2010-10-04 23:59:35 +0000
committerÉric Araujo <merwok@netwok.org>2010-10-04 23:59:35 +0000
commitc17776f96e8654dc9510daf55d90987be2e4dec2 (patch)
tree4aa2c2491e6d38d8f528094d69310219982c8f23 /Lib/gettext.py
parent6aab8d09b1d747d61945d3197335a99bd927b376 (diff)
downloadcpython-git-c17776f96e8654dc9510daf55d90987be2e4dec2.tar.gz
Merged revisions 85223 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85223 | eric.araujo | 2010-10-05 01:52:37 +0200 (mar., 05 oct. 2010) | 3 lines Fix interaction of custom translation classes and caching (#9042) ........
Diffstat (limited to 'Lib/gettext.py')
-rw-r--r--Lib/gettext.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/gettext.py b/Lib/gettext.py
index 8b8b510a0d..9973535ac5 100644
--- a/Lib/gettext.py
+++ b/Lib/gettext.py
@@ -471,7 +471,7 @@ def translation(domain, localedir=None, languages=None,
# once.
result = None
for mofile in mofiles:
- key = os.path.abspath(mofile)
+ key = (class_, os.path.abspath(mofile))
t = _translations.get(key)
if t is None:
with open(mofile, 'rb') as fp: