mirror of
https://github.com/python/cpython.git
synced 2024-11-24 10:24:35 +08:00
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:
|
||||
q = altq
|
||||
else:
|
||||
assert quote in ('"', "'")
|
||||
assert quote in ('"', "'", '"""', "'''")
|
||||
q = quote
|
||||
res = q
|
||||
for c in s:
|
||||
|
Loading…
Reference in New Issue
Block a user