diff options
author | Barry Warsaw <barry@python.org> | 1999-12-06 02:46:49 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1999-12-06 02:46:49 (GMT) |
commit | 8f35681843b922c905a10d7c74b30859cff88346 (patch) | |
tree | 353dc9692d4890a6133498785121e11c82e21f1c /Tools/i18n | |
parent | b70699bcc57ba26762269e4a1aab8581fccb46b4 (diff) | |
download | cpython-8f35681843b922c905a10d7c74b30859cff88346.zip cpython-8f35681843b922c905a10d7c74b30859cff88346.tar.gz cpython-8f35681843b922c905a10d7c74b30859cff88346.tar.bz2 |
Added \" to escapes so embedded escaped double quotes are handled
correctly. Patch suggested by Mads Kiilerich <mk@solit.dk>.
Diffstat (limited to 'Tools/i18n')
-rwxr-xr-x | Tools/i18n/pygettext.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Tools/i18n/pygettext.py b/Tools/i18n/pygettext.py index f8567e9..fcd6b95 100755 --- a/Tools/i18n/pygettext.py +++ b/Tools/i18n/pygettext.py @@ -137,6 +137,7 @@ escapes[ord('\\')] = '\\\\' escapes[ord('\t')] = '\\t' escapes[ord('\r')] = '\\r' escapes[ord('\n')] = '\\n' +escapes[ord('\"')] = '\\"' def escape(s): s = list(s) |