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

@@ -70,7 +70,7 @@ class AgentStop(Exception):
# pylint: disable=too-many-instance-attributes
class Handler(object):
class Handler:
"""GPG agent requests' handler."""
def _get_options(self):

View File

@@ -15,7 +15,7 @@ def create_identity(user_id, curve_name):
return result
class Client(object):
class Client:
"""Sign messages and get public keys from a hardware device."""
def __init__(self, device):

View File

@@ -185,7 +185,7 @@ def get_curve_name_by_oid(oid):
raise KeyError('Unknown OID: {!r}'.format(oid))
class PublicKey(object):
class PublicKey:
"""GPG representation for public key packets."""
def __init__(self, curve_name, created, verifying_key, ecdh=False):

View File

@@ -41,7 +41,7 @@ def test_parse_rsa():
assert keyring.parse_sig(sig) == (0x1020304,)
class FakeSocket(object):
class FakeSocket:
def __init__(self):
self.rx = io.BytesIO()
self.tx = io.BytesIO()