Skip to content

Commit

Permalink
fixup! fixup! fixup! Fix deprecation of pkg_resources, use importlib.…
Browse files Browse the repository at this point in the history
…metadata instead
  • Loading branch information
sorki committed Nov 8, 2023
1 parent 3a58ccf commit 6b4e972
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions blockfrost/config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from enum import Enum
from importlib.metadata import version

try:
from importlib.metadata import version
except ImportError: # for Python<3.8
from importlib_metadata import version

class ApiUrls(Enum):
mainnet = 'https://cardano-mainnet.blockfrost.io/api'
Expand Down

0 comments on commit 6b4e972

Please sign in to comment.