diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2007-08-13 06:02:38 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2007-08-13 06:02:38 (GMT) |
commit | e83395ee79845a6696281545472c1802fd81232a (patch) | |
tree | 58ce40a5da4622c3e0ae1f3bdff37ceacb4c1252 /Lib/idlelib/OutputWindow.py | |
parent | 163b717cd3ae8ad10bc2bbe33ccb4036c8f38ad1 (diff) | |
download | cpython-e83395ee79845a6696281545472c1802fd81232a.zip cpython-e83395ee79845a6696281545472c1802fd81232a.tar.gz cpython-e83395ee79845a6696281545472c1802fd81232a.tar.bz2 |
Make assertion error be more verbose.
Diffstat (limited to 'Lib/idlelib/OutputWindow.py')
-rw-r--r-- | Lib/idlelib/OutputWindow.py | 2 |
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() |