summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2005-01-16 19:31:40 (GMT)
committerSkip Montanaro <skip@pobox.com>2005-01-16 19:31:40 (GMT)
commit891a1ba3b23b5f50c78fd4b03988cf9dd0df218c (patch)
tree70d2875deef6a4d7b1b6ddb357d29e907541b9ae /Lib
parent5954623bc052ab17799a6b3ffcaaec8d99d977f5 (diff)
downloadcpython-891a1ba3b23b5f50c78fd4b03988cf9dd0df218c.zip
cpython-891a1ba3b23b5f50c78fd4b03988cf9dd0df218c.tar.gz
cpython-891a1ba3b23b5f50c78fd4b03988cf9dd0df218c.tar.bz2
allow triple-quoted string output from reconvert.quote()
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/reconvert.py2
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: