]> granicus.if.org Git - python/commitdiff
Improve fix for issue #20300.
authorLarry Hastings <larry@hastings.org>
Sun, 19 Jan 2014 11:01:23 +0000 (03:01 -0800)
committerLarry Hastings <larry@hastings.org>
Sun, 19 Jan 2014 11:01:23 +0000 (03:01 -0800)
Tools/clinic/clinic.py

index 84bc7b8a74153d66e56e929058f82d95273d09f8..69b5c4da16ce598b207307e893d351ddd68441b4 100755 (executable)
@@ -3448,7 +3448,7 @@ class DSLParser:
                 a.append('=')
                 value = p.converter.py_default
                 if not value:
-                    value = str(p.converter.default)
+                    value = repr(p.converter.default)
                 a.append(value)
             s = fix_right_bracket_count(p.right_bracket_count)
             s += "".join(a)