Skip to content

Commit

Permalink
Fix compatibility with Python >= 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
avalentino committed Sep 13, 2024
1 parent a9d95eb commit 8f6bb93
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@
# |version| and |release|, also used in various other places throughout the
# built documents.
#
import imp
resampy_version = imp.load_source('resampy.version', '../resampy/version.py')
import importlib.util
spec = importlib.util.spec_from_file_location('resampy.version', '../resampy/version.py')
resampy_version = importlib.util.module_from_spec(spec)
spec.loader.exec_module(resampy_version)

# The short X.Y version.
version = resampy_version.short_version
Expand Down

0 comments on commit 8f6bb93

Please sign in to comment.