diff options
author | Skip Montanaro <skip@pobox.com> | 2005-01-16 19:31:40 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2005-01-16 19:31:40 (GMT) |
commit | 891a1ba3b23b5f50c78fd4b03988cf9dd0df218c (patch) | |
tree | 70d2875deef6a4d7b1b6ddb357d29e907541b9ae | |
parent | 5954623bc052ab17799a6b3ffcaaec8d99d977f5 (diff) | |
download | cpython-891a1ba3b23b5f50c78fd4b03988cf9dd0df218c.zip cpython-891a1ba3b23b5f50c78fd4b03988cf9dd0df218c.tar.gz cpython-891a1ba3b23b5f50c78fd4b03988cf9dd0df218c.tar.bz2 |
allow triple-quoted string output from reconvert.quote()
-rwxr-xr-x | Lib/reconvert.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/reconvert.py b/Lib/reconvert.py index 2c77ee9..64bab5b 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: |