diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2012-11-09 11:51:03 +0100 |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2012-11-09 11:51:03 +0100 |
commit | ef4d0033aa386c74da01c6f245033b214e33c215 (patch) | |
tree | 456de822c9c044a0df81d0de20e47e394bc36af7 /Tools/i18n | |
parent | 156ab842aaceecde43273c598b0a16321a54456c (diff) | |
parent | 5574199e3993468a686ddaced6b19e5453dd9cdc (diff) | |
download | cpython-ef4d0033aa386c74da01c6f245033b214e33c215.tar.gz |
#13301: merge with 3.2.
Diffstat (limited to 'Tools/i18n')
-rwxr-xr-x | Tools/i18n/msgfmt.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/i18n/msgfmt.py b/Tools/i18n/msgfmt.py index a5544424e2..7b3a81ff93 100755 --- a/Tools/i18n/msgfmt.py +++ b/Tools/i18n/msgfmt.py @@ -24,8 +24,9 @@ Options: Display version information and exit. """ -import sys import os +import sys +import ast import getopt import struct import array @@ -180,8 +181,7 @@ def make(filename, outfile): l = l.strip() if not l: continue - # XXX: Does this always follow Python escape semantics? - l = eval(l) + l = ast.literal_eval(l) if section == ID: msgid += l.encode(encoding) elif section == STR: |