From: Martin v. Löwis Date: Mon, 13 Aug 2007 06:02:38 +0000 (+0000) Subject: Make assertion error be more verbose. X-Git-Tag: v3.0a1~420 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e83395ee79845a6696281545472c1802fd81232a;p=thirdparty%2FPython%2Fcpython.git Make assertion error be more verbose. --- diff --git a/Lib/idlelib/OutputWindow.py b/Lib/idlelib/OutputWindow.py index 0e8fd6db0a80..83d5771d7e0e 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()