]> granicus.if.org Git - python/commitdiff
allow triple-quoted string output from reconvert.quote()
authorSkip Montanaro <skip@pobox.com>
Sun, 16 Jan 2005 19:31:40 +0000 (19:31 +0000)
committerSkip Montanaro <skip@pobox.com>
Sun, 16 Jan 2005 19:31:40 +0000 (19:31 +0000)
Lib/reconvert.py

index 2c77ee91db5cf1addcc095efb3e792bede7a1266..64bab5b272c41a4f1635f8558d49fe97e3018461 100755 (executable)
@@ -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: