Skip to content

Commit 98ecbc6

Browse files
committed
work around a python 27 incompatibility by defining FileNotFoundError
1 parent 286e7d7 commit 98ecbc6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bitcoin/rpc.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@
4242
except ImportError:
4343
import urlparse
4444

45+
try:
46+
FileNotFoundError
47+
except NameError:
48+
FileNotFoundError = IOError
49+
4550
import bitcoin
4651
from bitcoin.core import COIN, x, lx, b2lx, CBlock, CBlockHeader, CTransaction, COutPoint, CTxOut
4752
from bitcoin.core.script import CScript

0 commit comments

Comments
 (0)