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

Commit a3fc6a1

Browse files
committed
Merge pull request #294 from ms83/develop
Get rid of eth.pow logging warning
2 parents d176369 + 31427b2 commit a3fc6a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ethereum/ethpow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import time
33
import sys
44
import sha3
5+
import warnings
56
from collections import OrderedDict
67
from ethereum.slogging import get_logger
78

@@ -15,10 +16,9 @@
1516
try:
1617
import pyethash
1718
ETHASH_LIB = 'pyethash' # the C++ based implementation
18-
log.warn('using C++ implementation')
1919
except ImportError:
2020
ETHASH_LIB = 'ethash'
21-
log.warn('using pure python implementation')
21+
warnings.warn('using pure python implementation', ImportWarning)
2222

2323
if ETHASH_LIB == 'ethash':
2424
mkcache = ethash.mkcache

0 commit comments

Comments
 (0)