mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-25 04:51:05 +02:00
tests: Remove compatibility code not needed now when we're on Python 3
This commit is contained in:
@@ -10,7 +10,6 @@ This file is modified from python-bitcoinlib.
|
||||
import ctypes
|
||||
import ctypes.util
|
||||
import hashlib
|
||||
import sys
|
||||
|
||||
ssl = ctypes.cdll.LoadLibrary(ctypes.util.find_library ('ssl') or 'libeay32')
|
||||
|
||||
@@ -223,10 +222,5 @@ class CPubKey(bytes):
|
||||
return repr(self)
|
||||
|
||||
def __repr__(self):
|
||||
# Always have represent as b'<secret>' so test cases don't have to
|
||||
# change for py2/3
|
||||
if sys.version > '3':
|
||||
return '%s(%s)' % (self.__class__.__name__, super(CPubKey, self).__repr__())
|
||||
else:
|
||||
return '%s(b%s)' % (self.__class__.__name__, super(CPubKey, self).__repr__())
|
||||
return '%s(%s)' % (self.__class__.__name__, super(CPubKey, self).__repr__())
|
||||
|
||||
|
Reference in New Issue
Block a user