mirror of https://github.com/python/cpython.git
allow triple-quoted string output from reconvert.quote()
This commit is contained in:
parent
5954623bc0
commit
891a1ba3b2
|
@ -166,7 +166,7 @@ def quote(s, quote=None):
|
||||||
if q in s and altq not in s:
|
if q in s and altq not in s:
|
||||||
q = altq
|
q = altq
|
||||||
else:
|
else:
|
||||||
assert quote in ('"', "'")
|
assert quote in ('"', "'", '"""', "'''")
|
||||||
q = quote
|
q = quote
|
||||||
res = q
|
res = q
|
||||||
for c in s:
|
for c in s:
|
||||||
|
|
Loading…
Reference in New Issue