From e83395ee79845a6696281545472c1802fd81232a Mon Sep 17 00:00:00 2001 From: "Martin v. Löwis" Date: Mon, 13 Aug 2007 06:02:38 +0000 Subject: Make assertion error be more verbose. --- Lib/idlelib/OutputWindow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/idlelib/OutputWindow.py') diff --git a/Lib/idlelib/OutputWindow.py b/Lib/idlelib/OutputWindow.py index 0e8fd6db0a8..83d5771d7e0 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() -- cgit v1.2.3