summaryrefslogtreecommitdiffstats
path: root/Lib/gettext.py
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2010-10-04 23:57:46 (GMT)
committerÉric Araujo <merwok@netwok.org>2010-10-04 23:57:46 (GMT)
commit298be5161f27006a82bf499fcd7a990cb5ee4a87 (patch)
tree6c262cb543dd39ce972d12e19f0f17e45c32f67a /Lib/gettext.py
parent2fdbfc507e0a2e2b92415bf5a25090a6839ae799 (diff)
downloadcpython-298be5161f27006a82bf499fcd7a990cb5ee4a87.zip
cpython-298be5161f27006a82bf499fcd7a990cb5ee4a87.tar.gz
cpython-298be5161f27006a82bf499fcd7a990cb5ee4a87.tar.bz2
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 4c957c0..f9392d8 100644
--- a/Lib/gettext.py
+++ b/Lib/gettext.py
@@ -419,7 +419,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: