mirror of
https://github.com/python/cpython.git
synced 2025-08-15 22:30:42 +00:00
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) ........
This commit is contained in:
parent
6aab8d09b1
commit
c17776f96e
3 changed files with 35 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue