diff options
author | Ian Ward <ian@excess.org> | 2013-12-26 20:51:13 -0500 |
---|---|---|
committer | Ian Ward <ian@excess.org> | 2013-12-29 11:27:34 -0500 |
commit | c0f8b26e5b8f2de643966b0b9150cb84c727e20c (patch) | |
tree | f101d33112b6ce0f58495c836335a5885e755124 | |
parent | 894a41e0183e71ac077930f2662f092b734da901 (diff) | |
download | urwid-c0f8b26e5b8f2de643966b0b9150cb84c727e20c.tar.gz |
without the errors= keyword
-rw-r--r-- | urwid/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/urwid/util.py b/urwid/util.py index 39a0f7e..0560b5d 100644 --- a/urwid/util.py +++ b/urwid/util.py @@ -120,7 +120,7 @@ def apply_target_encoding( s ): if type(s) == unicode: s = s.replace(escape.SI+escape.SO, u"") # remove redundant shifts - s = codecs.encode(s, _target_encoding, errors='replace') + s = codecs.encode(s, _target_encoding, 'replace') assert isinstance(s, bytes) SO = escape.SO.encode('ascii') |