Skip to content

Commit 6de613a

Browse files
committed
better handling of importlib_resources
1 parent ffa203e commit 6de613a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

resampy/filters.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,11 @@
4848
import numpy as np
4949
import sys
5050

51-
# Try to import from the standard library first (Python >= 3.9)
5251
if sys.version_info < (3, 9):
53-
from importlib import resources as importlib_resources
54-
else:
55-
# Fall back to the backport
52+
# Use the backport of importlib resources for old python
5653
import importlib_resources
54+
else:
55+
from importlib import resources as importlib_resources
5756

5857

5958
FILTER_FUNCTIONS = ['sinc_window']

0 commit comments

Comments
 (0)