commit | e83395ee79845a6696281545472c1802fd81232a | [log] [tgz] |
---|---|---|
author | Martin v. Löwis <martin@v.loewis.de> | Mon Aug 13 06:02:38 2007 +0000 |
committer | Martin v. Löwis <martin@v.loewis.de> | Mon Aug 13 06:02:38 2007 +0000 |
tree | 58ce40a5da4622c3e0ae1f3bdff37ceacb4c1252 | |
parent | 163b717cd3ae8ad10bc2bbe33ccb4036c8f38ad1 [diff] |
Make assertion error be more verbose.
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 @@ # 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()