Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit a9f86ab

Browse files
author
Jan Xie
authored
Merge pull request #731 from AndreMiras/patch-1
Update utils.py, fix ImportError
2 parents adcfcda + 2032f07 commit a9f86ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ethereum/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
try:
1515
import secp256k1
1616
except ImportError:
17-
import warning
18-
warning.ImportWarning('could not import secp256k1')
17+
import warnings
18+
warnings.warn('could not import secp256k1', ImportWarning)
1919
secp256k1 = None
2020

2121
big_endian_to_int = lambda x: big_endian_int.deserialize(str_to_bytes(x).lstrip(b'\x00'))

0 commit comments

Comments
 (0)