Mercurial > urwid-satext
diff urwid_satext/sat_widgets.py @ 44:9fc778aab7f5
fix for urwid 1.0.0
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 02 Oct 2011 18:47:17 +0200 |
parents | 1aeb3540aa49 |
children | d34f2b0f68d3 |
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)"""