summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-04-19 15:38:09 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-04-19 15:38:09 +0900
commit6fbc81e73181738acb4d65218ba8870e328d4f3b (patch)
treeb031c26837d6263029e0dd2c3725298759a9d694
parent670487bed0019048aa48576442fffd4d7368d4e3 (diff)
downloadbuildstream-6fbc81e73181738acb4d65218ba8870e328d4f3b.tar.gz
buildstream/_artifactcache/pushreceive.py: Fixing unused variables
-rw-r--r--buildstream/_artifactcache/pushreceive.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/buildstream/_artifactcache/pushreceive.py b/buildstream/_artifactcache/pushreceive.py
index 7c3ac8259..92c82309c 100644
--- a/buildstream/_artifactcache/pushreceive.py
+++ b/buildstream/_artifactcache/pushreceive.py
@@ -251,7 +251,7 @@ class PushMessageReader(object):
if not header:
# Remote end quit
return None, None
- order, version, cmdtype, size = self.decode_header(header)
+ order, _, cmdtype, size = self.decode_header(header)
msg = self.file.read(size)
if len(msg) != size:
raise PushException('Did not receive full message')
@@ -268,11 +268,11 @@ class PushMessageReader(object):
return cmdtype, args.unpack()
def receive_info(self):
- cmdtype, args = self.receive([PushCommandType.info])
+ _, args = self.receive([PushCommandType.info])
return args
def receive_update(self):
- cmdtype, args = self.receive([PushCommandType.update])
+ _, args = self.receive([PushCommandType.update])
return args
def receive_putobjects(self, repo):
@@ -307,11 +307,11 @@ class PushMessageReader(object):
return received_objects
def receive_status(self):
- cmdtype, args = self.receive([PushCommandType.status])
+ _, args = self.receive([PushCommandType.status])
return args
def receive_done(self):
- cmdtype, args = self.receive([PushCommandType.done])
+ _, args = self.receive([PushCommandType.done])
return args