Skip to content

Commit

Permalink
Update deprecated urwid.util usage (#23)
Browse files Browse the repository at this point in the history
In urwid 2.6.0, using some functions from the `urwid.util` package was deprecated in favor of using them directly from `urwid`. Here `urwid.util.is_wide_char` is changed to `urwid.is_wide_char`. `is_wide_char` has been available from the `urwid` namespace for many years, so there should be no backwards compatibility isssues.

For details about the urwid change, see urwid/urwid#803.
  • Loading branch information
wshanks committed Mar 8, 2024
1 parent 70372ce commit 46cfd3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion urwid_readline/readline_edit.py
Expand Up @@ -6,7 +6,7 @@


def _is_valid_key(char):
return urwid.util.is_wide_char(char, 0) or (
return urwid.is_wide_char(char, 0) or (
len(char) == 1 and ord(char) >= 32
)

Expand Down

0 comments on commit 46cfd3b

Please sign in to comment.