summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2007-08-13 06:02:38 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2007-08-13 06:02:38 (GMT)
commite83395ee79845a6696281545472c1802fd81232a (patch)
tree58ce40a5da4622c3e0ae1f3bdff37ceacb4c1252 /Lib
parent163b717cd3ae8ad10bc2bbe33ccb4036c8f38ad1 (diff)
downloadcpython-e83395ee79845a6696281545472c1802fd81232a.zip
cpython-e83395ee79845a6696281545472c1802fd81232a.tar.gz
cpython-e83395ee79845a6696281545472c1802fd81232a.tar.bz2
Make assertion error be more verbose.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/idlelib/OutputWindow.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/OutputWindow.py b/Lib/idlelib/OutputWindow.py
index 0e8fd6d..83d5771 100644
--- a/Lib/idlelib/OutputWindow.py
+++ b/Lib/idlelib/OutputWindow.py
@@ -35,7 +35,7 @@ class OutputWindow(EditorWindow):
# Act as output file
def write(self, s, tags=(), mark="insert"):
- assert isinstance(s, str)
+ assert isinstance(s, str), repr(s)
self.text.insert(mark, s, tags)
self.text.see(mark)
self.text.update()