Skip to content

Commit dda556b

Browse files
committed
remove import trick needed for Python 3.7
since 3.7 is no longer supported
1 parent 5f487ab commit dda556b

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

changelog.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
Upcoming Release (TBD)
2+
======================
3+
4+
Internal
5+
--------
6+
* Remove backward-compatibility hacks.
7+
8+
19
1.31.1 (2025/04/25)
210
===================
311

mycli/main.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,7 @@
6969
from urllib.parse import urlparse
7070
from urllib.parse import unquote
7171

72-
try:
73-
import importlib.resources as resources
74-
except ImportError:
75-
# Python < 3.7
76-
import importlib_resources as resources
72+
from importlib import resources
7773

7874
try:
7975
import paramiko

0 commit comments

Comments
 (0)