diff --git a/attic/cache.py b/attic/cache.py index acbc76653..e9f0a81dd 100644 --- a/attic/cache.py +++ b/attic/cache.py @@ -10,7 +10,7 @@ from .hashindex import ChunkIndex -class Cache(object): +class Cache: """Client Side cache """ class RepositoryReplay(Error): diff --git a/attic/key.py b/attic/key.py index ef623f36c..e32c0bf71 100644 --- a/attic/key.py +++ b/attic/key.py @@ -44,7 +44,7 @@ def key_factory(repository, manifest_data): raise UnsupportedPayloadError(manifest_data[0]) -class KeyBase(object): +class KeyBase: def __init__(self): self.TYPE_STR = bytes([self.TYPE]) diff --git a/attic/remote.py b/attic/remote.py index f2a0aed06..27305a619 100644 --- a/attic/remote.py +++ b/attic/remote.py @@ -23,7 +23,7 @@ class PathNotAllowed(Error): """Repository path not allowed""" -class RepositoryServer(object): +class RepositoryServer: def __init__(self, restrict_to_paths): self.repository = None @@ -78,7 +78,7 @@ def open(self, path, create=False): return self.repository.id -class RemoteRepository(object): +class RemoteRepository: extra_test_args = [] class RPCError(Exception): @@ -312,4 +312,4 @@ def get_many(self, keys): def cache_if_remote(repository): if isinstance(repository, RemoteRepository): return RepositoryCache(repository) - return repository \ No newline at end of file + return repository diff --git a/attic/repository.py b/attic/repository.py index eed85dc43..f87e2731e 100644 --- a/attic/repository.py +++ b/attic/repository.py @@ -19,7 +19,7 @@ TAG_COMMIT = 2 -class Repository(object): +class Repository: """Filesystem based transactional key value store On disk layout: @@ -378,7 +378,7 @@ def preload(self, ids): """ -class LoggedIO(object): +class LoggedIO: header_fmt = struct.Struct('