urwid_readline icon indicating copy to clipboard operation
urwid_readline copied to clipboard

DeprecationWarning: Do not import 'is_wide_char' from urwid.urwid.util, import it from 'urwid'.

Open sylvain-vq opened this issue 7 months ago • 2 comments

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.

sylvain-vq avatar Jul 25 '24 06:07 sylvain-vq