changeset 44:9fc778aab7f5

fix for urwid 1.0.0
author Goffi <goffi@goffi.org>
date Sun, 02 Oct 2011 18:47:17 +0200
parents e49d8f289a73
children 39c1448badd7
files urwid_satext/sat_widgets.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/urwid_satext/sat_widgets.py	Sun Feb 20 00:41:21 2011 +0100
+++ b/urwid_satext/sat_widgets.py	Sun Oct 02 18:47:17 2011 +0200
@@ -20,8 +20,9 @@
 """
 
 import urwid
-from urwid.escape import utf8decode
 from logging import debug, info, warning, error
+import encodings
+utf8decode = lambda s: encodings.codecs.utf_8_decode(s)[0]
 
 class Password(urwid.Edit):
     """Edit box which doesn't show what is entered (show '*' or other char instead)"""