summaryrefslogtreecommitdiffstats
path: root/Tools/i18n
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1999-12-06 02:46:49 (GMT)
committerBarry Warsaw <barry@python.org>1999-12-06 02:46:49 (GMT)
commit8f35681843b922c905a10d7c74b30859cff88346 (patch)
tree353dc9692d4890a6133498785121e11c82e21f1c /Tools/i18n
parentb70699bcc57ba26762269e4a1aab8581fccb46b4 (diff)
downloadcpython-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-xTools/i18n/pygettext.py1
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)