urwid_readline
urwid_readline copied to clipboard
DeprecationWarning: Do not import 'is_wide_char' from urwid.urwid.util, import it from 'urwid'.
I'm getting this warning with urwid-readline 0.14
and urwid 2.6.15
. It comes from readline_edit.py:
def _is_valid_key(char):
return urwid.util.is_wide_char(char, 0) or (
len(char) == 1 and ord(char) >= 32
)
urwid.util.is_wide_char
should be changed for urwid.is_wide_char
though I don't know if this would also work with older versions of urwid
.