Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7bf3e63

Browse files
authored
Fallback to backport
Auto fallback to use the backport for pre 3.7 pythons.
1 parent c3262d8 commit 7bf3e63

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

etherscan/etherscan.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import json
2-
from importlib import resources
2+
try:
3+
from importlib import resources
4+
except ImportError:
5+
import importlib_resources as resources
36

47
import requests
58

0 commit comments

Comments
 (0)