Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 4 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /