Make assertion error be more verbose.

This commit is contained in:
Martin v. Löwis 2007-08-13 06:02:38 +00:00
parent 163b717cd3
commit e83395ee79
1 changed files with 1 additions and 1 deletions

View File

@ -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()