diff options
author | Éric Araujo <merwok@netwok.org> | 2010-10-04 23:52:37 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2010-10-04 23:52:37 (GMT) |
commit | 6108bf5ed002925f2092deb025f336d8c2024299 (patch) | |
tree | 1e2c4f8c7329edab6adb0247528da28607818141 /Lib/gettext.py | |
parent | 701761693c7f6a2d748e43ae70f46e371087a864 (diff) | |
download | cpython-6108bf5ed002925f2092deb025f336d8c2024299.zip cpython-6108bf5ed002925f2092deb025f336d8c2024299.tar.gz cpython-6108bf5ed002925f2092deb025f336d8c2024299.tar.bz2 |
Fix interaction of custom translation classes and caching (#9042)
Diffstat (limited to 'Lib/gettext.py')
-rw-r--r-- | Lib/gettext.py | 2 |
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: |