Skip to content

Commit 84cb7f4

Browse files
authored
Merge pull request #1214 from dbcli/RW/remove-python-37-trick
Remove import trick needed for Python 3.7
2 parents fd7f50d + fb6a5c2 commit 84cb7f4

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Upcoming Release (TBD)
33

44
Internal
55
--------
6-
76
* Work on passing `ruff check` linting.
7+
* Remove backward-compatibility hacks.
88

99

1010
1.31.1 (2025/04/25)

mycli/main.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,7 @@
6666
from urllib.parse import urlparse
6767
from urllib.parse import unquote
6868

69-
try:
70-
import importlib.resources as resources
71-
except ImportError:
72-
# Python < 3.7
73-
import importlib_resources as resources
69+
from importlib import resources
7470

7571
try:
7672
import paramiko

0 commit comments

Comments
 (0)