Modifying Lambda function tuple usage for python3
Current tuple unpacking is not supported in python3 Change-Id: I15a8e977684d19154cf2233caf1174f6983ac9e2
This commit is contained in:
parent
8a2f2edf1c
commit
5ee742c17d
@ -211,8 +211,10 @@ class Sender(object):
|
||||
self.job['policy'], self.suffixes,
|
||||
frag_index=self.job.get('frag_index'))
|
||||
if self.remote_check_objs is not None:
|
||||
hash_gen = ifilter(lambda (path, object_hash, timestamp):
|
||||
object_hash in self.remote_check_objs, hash_gen)
|
||||
hash_gen = ifilter(
|
||||
lambda path_objhash_timestamp:
|
||||
path_objhash_timestamp[1] in
|
||||
self.remote_check_objs, hash_gen)
|
||||
for path, object_hash, timestamp in hash_gen:
|
||||
self.available_map[object_hash] = timestamp
|
||||
with exceptions.MessageTimeout(
|
||||
|
Loading…
x
Reference in New Issue
Block a user