Added \" to escapes so embedded escaped double quotes are handled

correctly.  Patch suggested by Mads Kiilerich <mk@solit.dk>.
This commit is contained in:
Barry Warsaw 1999-12-06 02:46:49 +00:00
parent b70699bcc5
commit 8f35681843
1 changed files with 1 additions and 0 deletions

View File

@ -137,6 +137,7 @@ def usage(code, msg=''):
escapes[ord('\t')] = '\\t'
escapes[ord('\r')] = '\\r'
escapes[ord('\n')] = '\\n'
escapes[ord('\"')] = '\\"'
def escape(s):
s = list(s)