Don't inheric from 'object' (after deprecating Python 2.x support)
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user