Skip to content

Commit

Permalink
better handling of importlib_resources
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcfee committed Mar 5, 2024
1 parent 619182a commit 74d20a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resampy/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@

try:
# Try to import from the standard library first (Python >= 3.9)
if sys.version_info < (3, 9)
from importlib import resources as importlib_resources
except ImportError:
else:
# Fall back to the backport
import importlib_resources

Expand Down

0 comments on commit 74d20a8

Please sign in to comment.