Skip to content

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

@sylvain-vq

Description

@sylvain-vq

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions