]> granicus.if.org Git - python/commitdiff
String values will now always be shown with quotes, so one can see the difference...
authorJust van Rossum <just@lettererror.com>
Sat, 30 Oct 1999 11:43:25 +0000 (11:43 +0000)
committerJust van Rossum <just@lettererror.com>
Sat, 30 Oct 1999 11:43:25 +0000 (11:43 +0000)
Mac/Tools/IDE/PyBrowser.py

index 31e6c86b9540d91adaa062e3d0e4599e41ca1fc4..27e6418886725f6ca98e6ee2c892cb7df1222953 100644 (file)
@@ -22,9 +22,7 @@ def double_repr(key, value, truncvalue = 0,
                key = str(key)
        else:
                key = _repr(key)
-       if type(value) == StringType and has_ctlchars(value) < 0:
-               value = str(value)
-       elif key == '__builtins__':
+       if key == '__builtins__':
                value = "<" + type(value).__name__ + " '__builtin__'>"
        elif key == '__return__':
                # bleh, when returning from a class codeblock we get infinite recursion in repr.