aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_framework/key.py
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2018-04-16 09:53:56 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2018-04-16 09:54:27 +0200
commitb95f9a61e0b2ae6cab0ea5431d7ee1841b80a8c8 (patch)
tree780cc6ada12835f6b4e7f6c6255df075de8655ad /test/functional/test_framework/key.py
parent6df0c6cb4169701193868267526eff82be0c5a42 (diff)
downloadbitcoin-b95f9a61e0b2ae6cab0ea5431d7ee1841b80a8c8.tar.xz
tests: Remove compatibility code not needed now when we're on Python 3
Diffstat (limited to 'test/functional/test_framework/key.py')
-rw-r--r--test/functional/test_framework/key.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/test/functional/test_framework/key.py b/test/functional/test_framework/key.py
index aa91fb5b0d..1b3e510dc4 100644
--- a/test/functional/test_framework/key.py
+++ b/test/functional/test_framework/key.py
@@ -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__())