summaryrefslogtreecommitdiffstats
path: root/Mac/Tools/IDE
diff options
context:
space:
mode:
authorJust van Rossum <just@lettererror.com>1999-10-30 11:43:25 (GMT)
committerJust van Rossum <just@lettererror.com>1999-10-30 11:43:25 (GMT)
commit460ff20cd6f0431f177eabe1eb62cf452f1679d0 (patch)
treea7ab132ca43c9e82b288b8f86a700aa986454d7c /Mac/Tools/IDE
parent5bd608d46ee9e160c0e8f1fccf5355581f49d30a (diff)
downloadcpython-460ff20cd6f0431f177eabe1eb62cf452f1679d0.zip
cpython-460ff20cd6f0431f177eabe1eb62cf452f1679d0.tar.gz
cpython-460ff20cd6f0431f177eabe1eb62cf452f1679d0.tar.bz2
String values will now always be shown with quotes, so one can see the difference between the value 2 and the value '2'. -- jvr
Diffstat (limited to 'Mac/Tools/IDE')
-rw-r--r--Mac/Tools/IDE/PyBrowser.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Mac/Tools/IDE/PyBrowser.py b/Mac/Tools/IDE/PyBrowser.py
index 31e6c86..27e6418 100644
--- a/Mac/Tools/IDE/PyBrowser.py
+++ b/Mac/Tools/IDE/PyBrowser.py
@@ -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.