Skip to content

Commit de97109

Browse files
committed
Remove Python2 support
1 parent 95cfa7e commit de97109

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# python-bitcoinlib
22

3-
This Python2/3 library provides an easy interface to the bitcoin data
3+
This Python3 library provides an easy interface to the bitcoin data
44
structures and protocol. The approach is low-level and "ground up", with a
55
focus on providing tools to manipulate the internals of how Bitcoin works.
66

@@ -95,9 +95,7 @@ the Satoshi codebase.
9595

9696
Under bitcoin/tests using test data from Bitcoin Core. To run them:
9797

98-
python -m unittest discover && python3 -m unittest discover
99-
100-
Please run the tests on both Python2 and Python3 for your pull-reqs!
98+
python3 -m unittest discover
10199

102100
Alternately, if Tox (see https://tox.readthedocs.org/) is available on your
103101
system, you can run unit tests for multiple Python versions:
@@ -107,11 +105,9 @@ system, you can run unit tests for multiple Python versions:
107105
Currently, the following implementations are tried (any not installed are
108106
skipped):
109107

110-
* CPython 2.7
111108
* CPython 3.3
112109
* CPython 3.4
113110
* CPython 3.5
114-
* PyPy
115111
* PyPy3
116112

117113
HTML coverage reports can then be found in the htmlcov/ subdirectory.

bitcoin/rpc.py

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

45-
# needed for python2 compatibility
46-
if sys.version < '3':
47-
try:
48-
FileNotFoundError
49-
except NameError:
50-
FileNotFoundError = IOError
51-
5245
import bitcoin
5346
from bitcoin.core import COIN, x, lx, b2lx, CBlock, CBlockHeader, CTransaction, COutPoint, CTxOut
5447
from bitcoin.core.script import CScript

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[tox] #-------------------------------------------------------------------
44

5-
envlist = reset,py27,py33,py34,py35,pypy,pypy3,stats
5+
envlist = reset,py33,py34,py35,pypy3,stats
66
skip_missing_interpreters = True
77

88
[testenv] #---------------------------------------------------------------

0 commit comments

Comments
 (0)