diff options
| author | Skip Montanaro <skip@pobox.com> | 2005-01-16 19:31:40 +0000 |
|---|---|---|
| committer | Skip Montanaro <skip@pobox.com> | 2005-01-16 19:31:40 +0000 |
| commit | 15c35407d07faa6f5af8c8723f9c2bc01c73a681 (patch) | |
| tree | 7fc63e8f568edbcb2a5f45593b1dbce1b8616685 | |
| parent | 3c031b74535de2af0d51fa6d0e6df8b38fab578b (diff) | |
| download | cpython-15c35407d07faa6f5af8c8723f9c2bc01c73a681.tar.gz | |
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 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: |
