Skip to content

Commit

Permalink
Adapt to, depend on urwid 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Jan 5, 2024
1 parent 9f9a6ac commit 744938a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pudb/debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion pudb/ui_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 744938a

Please sign in to comment.