allow triple-quoted string output from reconvert.quote()

This commit is contained in:
Skip Montanaro 2005-01-16 19:31:40 +00:00
parent 5954623bc0
commit 891a1ba3b2
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ def quote(s, quote=None):
if q in s and altq not in s:
q = altq
else:
assert quote in ('"', "'")
assert quote in ('"', "'", '"""', "'''")
q = quote
res = q
for c in s: