Merge "Modifying Lambda function tuple usage for python3"

This commit is contained in:
Jenkins 2015-07-28 16:24:10 +00:00 committed by Gerrit Code Review
commit a77cd04149

View File

@ -211,8 +211,10 @@ class Sender(object):
self.job['policy'], self.suffixes, self.job['policy'], self.suffixes,
frag_index=self.job.get('frag_index')) frag_index=self.job.get('frag_index'))
if self.remote_check_objs is not None: if self.remote_check_objs is not None:
hash_gen = ifilter(lambda (path, object_hash, timestamp): hash_gen = ifilter(
object_hash in self.remote_check_objs, hash_gen) lambda path_objhash_timestamp:
path_objhash_timestamp[1] in
self.remote_check_objs, hash_gen)
for path, object_hash, timestamp in hash_gen: for path, object_hash, timestamp in hash_gen:
self.available_map[object_hash] = timestamp self.available_map[object_hash] = timestamp
with exceptions.MessageTimeout( with exceptions.MessageTimeout(