From 5ee742c17d9ea92ca7332cb67db0cce64b7a0d8f Mon Sep 17 00:00:00 2001 From: janonymous Date: Fri, 24 Jul 2015 21:19:47 +0530 Subject: [PATCH] Modifying Lambda function tuple usage for python3 Current tuple unpacking is not supported in python3 Change-Id: I15a8e977684d19154cf2233caf1174f6983ac9e2 --- swift/obj/ssync_sender.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/swift/obj/ssync_sender.py b/swift/obj/ssync_sender.py index 8367ba8aec..c768bbfc82 100644 --- a/swift/obj/ssync_sender.py +++ b/swift/obj/ssync_sender.py @@ -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(