Skip to content

Commit 74d20a8

Browse files
committed
better handling of importlib_resources
1 parent 619182a commit 74d20a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

resampy/filters.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@
5050

5151
try:
5252
# Try to import from the standard library first (Python >= 3.9)
53+
if sys.version_info < (3, 9)
5354
from importlib import resources as importlib_resources
54-
except ImportError:
55+
else:
5556
# Fall back to the backport
5657
import importlib_resources
5758

0 commit comments

Comments
 (0)