diff --git a/pudb/debugger.py b/pudb/debugger.py index 5614f02b..74bbcdd8 100644 --- a/pudb/debugger.py +++ b/pudb/debugger.py @@ -602,9 +602,9 @@ def runcall(self, *args, **kwargs): curses = None -from urwid.raw_display import Screen as RawScreen +from urwid.display.raw import Screen as RawScreen try: - from urwid.curses_display import Screen as CursesScreen + from urwid.display.curses import Screen as CursesScreen except ImportError: CursesScreen = None diff --git a/pudb/ui_tools.py b/pudb/ui_tools.py index 550f016a..8ea78a54 100644 --- a/pudb/ui_tools.py +++ b/pudb/ui_tools.py @@ -17,7 +17,7 @@ def text_width(txt): def encode_like_urwid(s): - from urwid import escape + from urwid.display import escape from urwid.util import _target_encoding # Consistent with diff --git a/setup.py b/setup.py index 94e1db44..df3584f3 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ author_email="inform@tiker.net", python_requires="~=3.8", install_requires=[ - "urwid>=1.1.1", + "urwid>=2.4", "pygments>=2.7.4", "jedi>=0.18,<1", "urwid_readline",