Don't inheric from 'object' (after deprecating Python 2.x support)

This commit is contained in:
Roman Zeyde
2018-07-25 13:44:55 +03:00
parent 03e7fc48e9
commit eed168341c
13 changed files with 16 additions and 16 deletions

View File

@@ -59,7 +59,7 @@ class DeviceError(Error):
"""Error during device operation."""
class Identity(object):
class Identity:
"""Represent SLIP-0013 identity, together with a elliptic curve choice."""
def __init__(self, identity_str, curve_name):
@@ -102,7 +102,7 @@ class Identity(object):
return self.curve_name
class Device(object):
class Device:
"""Abstract cryptographic hardware device interface."""
def __init__(self):

View File

@@ -9,7 +9,7 @@ from .. import util
log = logging.getLogger(__name__)
class UI(object):
class UI:
"""UI for PIN/passphrase entry (for TREZOR devices)."""
def __init__(self, device_type, config=None):