From c428477790fb2a1f9d429ae682b8ec1ccd3cfa6f Mon Sep 17 00:00:00 2001 From: Rouven Czerwinski Date: Thu, 20 Jun 2024 09:40:15 +0200 Subject: [PATCH] remote/client: remove two unused variables Fixes: labgrid/remote/client.py:711:8: W0612: Unused variable 'user' (unused-variable) labgrid/remote/client.py:655:8: W0612: Unused variable 'acquired_by' (unused-variable) Signed-off-by: Rouven Czerwinski --- labgrid/remote/client.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/labgrid/remote/client.py b/labgrid/remote/client.py index bd120d28c..e7045e426 100755 --- a/labgrid/remote/client.py +++ b/labgrid/remote/client.py @@ -652,7 +652,6 @@ def check_matches(self, place): async def acquire(self): """Acquire a place, marking it unavailable for other clients""" place = self.get_place() - acquired_by = f"{self.gethostname()}/{self.getuser()}" if place.acquired: raise UserError(f"place {place.name} is already acquired by {place.acquired}") # FIXME: done in coordinator? @@ -708,7 +707,6 @@ async def release(self): async def release_from(self): """Release a place, but only if acquired by a specific user""" place = self.get_place() - user = self.getuser() request = labgrid_coordinator_pb2.ReleasePlaceRequest(placename=place.name, fromuser=self.args.acquired)