ethereum/pydevp2p

Don't print import warnings to stdout

ulope opened this issue · 0 comments

ulope commented

The warning in

print 'WARNING: could not import c_secp256k1, fallback to bitcointools'
currently breaks a helper script used by HydraChain's docker start script since the warning is printed to stdout and conflicts with the scripts output.

The warning should at the least be printed to stderr or perhaps better yet we should use the warnings module.