[Python-checkins] cpython: Improve fix for issue #20300.

larry.hastings python-checkins at python.org
Sun Jan 19 12:01:52 CET 2014


http://hg.python.org/cpython/rev/d0e2437136f5
changeset:   88572:d0e2437136f5
user:        Larry Hastings <larry at hastings.org>
date:        Sun Jan 19 03:01:23 2014 -0800
summary:
  Improve fix for issue #20300.

files:
  Tools/clinic/clinic.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py
--- a/Tools/clinic/clinic.py
+++ b/Tools/clinic/clinic.py
@@ -3448,7 +3448,7 @@
                 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)

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list