diff options
author | Marien Zwart <marien.zwart@gmail.com> | 2010-03-07 18:18:27 -0500 |
---|---|---|
committer | Marien Zwart <marien.zwart@gmail.com> | 2010-03-07 18:18:27 -0500 |
commit | 18c42572598339faacd70fc74021f1bb4cc9a27a (patch) | |
tree | df5ebef0d635076031569a688d909900eb54a28d /urwid/util.py | |
parent | a3f310c42daaf14ff98b2a866ac7aca2b97b89c0 (diff) | |
download | urwid-18c42572598339faacd70fc74021f1bb4cc9a27a.tar.gz |
Stop using backticks for reprs.
Diffstat (limited to 'urwid/util.py')
-rw-r--r-- | urwid/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 ) |