diff --git a/attic/helpers.py b/attic/helpers.py index ac526698..d8be75b4 100644 --- a/attic/helpers.py +++ b/attic/helpers.py @@ -17,7 +17,6 @@ import attic.chunker import attic.crypto - class Error(Exception): """Error base class""" diff --git a/attic/remote.py b/attic/remote.py index f2a0aed0..90ad686f 100644 --- a/attic/remote.py +++ b/attic/remote.py @@ -38,7 +38,7 @@ def serve(self): fcntl.fcntl(sys.stdout.fileno(), fcntl.F_SETFL, fl & ~os.O_NONBLOCK) unpacker = msgpack.Unpacker(use_list=False) while True: - r, w, es = select.select([sys.stdin], [], [], 10) + r, w, es = self.t.select([sys.stdin], [], [], 10) if r: data = os.read(sys.stdin.fileno(), BUFSIZE) if not data: @@ -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