From 18c42572598339faacd70fc74021f1bb4cc9a27a Mon Sep 17 00:00:00 2001 From: Marien Zwart Date: Sun, 7 Mar 2010 18:18:27 -0500 Subject: Stop using backticks for reprs. --- urwid/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'urwid/util.py') diff --git a/urwid/util.py b/urwid/util.py index aae4329..0bb1e57 100644 --- a/urwid/util.py +++ b/urwid/util.py @@ -267,7 +267,7 @@ def rle_len( rle ): run = 0 for v in rle: - assert type(v) == type(()), `rle` + assert type(v) == type(()), repr(rle) a, r = v run += r return run @@ -395,7 +395,7 @@ def _tagmarkup_recurse( tm, attr ): if type(tm) == type(()): # tuples mark a new attribute boundary if len(tm) != 2: - raise TagMarkupException, "Tuples must be in the form (attribute, tagmarkup): %s" % `tm` + raise TagMarkupException, "Tuples must be in the form (attribute, tagmarkup): %r" % (tm,) attr, element = tm return _tagmarkup_recurse( element, attr ) -- cgit v1.2.1