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 | 891a1ba3b23b5f50c78fd4b03988cf9dd0df218c (patch) | |
| tree | 70d2875deef6a4d7b1b6ddb357d29e907541b9ae /Lib/reconvert.py | |
| parent | 5954623bc052ab17799a6b3ffcaaec8d99d977f5 (diff) | |
| download | cpython-git-891a1ba3b23b5f50c78fd4b03988cf9dd0df218c.tar.gz | |
allow triple-quoted string output from reconvert.quote()
Diffstat (limited to 'Lib/reconvert.py')
| -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: |
