From: Skip Montanaro Date: Sun, 16 Jan 2005 19:31:40 +0000 (+0000) Subject: allow triple-quoted string output from reconvert.quote() X-Git-Tag: v2.5a0~2105 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=891a1ba3b23b5f50c78fd4b03988cf9dd0df218c;p=python allow triple-quoted string output from reconvert.quote() --- diff --git a/Lib/reconvert.py b/Lib/reconvert.py index 2c77ee91db..64bab5b272 100755 --- a/Lib/reconvert.py +++ b/Lib/reconvert.py @@ -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: