Skip to content

Commit

Permalink
tui: avoid deprecated import (cylc#5858)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-sanders authored Dec 4, 2023
1 parent 1911a81 commit 64417e5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cylc/flow/tui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@
import re

import urwid
from urwid.wimp import SelectableIcon
try:
from urwid.widget import SelectableIcon
except ImportError:
# BACK COMPAT: urwid.wimp
# From: urwid 2.0
# To: urwid 2.2
from urwid.wimp import SelectableIcon

from cylc.flow.id import Tokens
from cylc.flow.task_state import (
Expand Down

0 comments on commit 64417e5

Please sign in to comment.