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

@@ -146,7 +146,7 @@ def hexlify(blob):
return binascii.hexlify(blob).decode('ascii').upper()
class Reader(object):
class Reader:
"""Read basic type objects out of given stream."""
def __init__(self, stream):
@@ -258,7 +258,7 @@ def assuan_serialize(data):
return data
class ExpiringCache(object):
class ExpiringCache:
"""Simple cache with a deadline."""
def __init__(self, seconds, timer=time.time):