From 6bac6d12593d4719617b321048df486aa8a2bd3e Mon Sep 17 00:00:00 2001 From: Alexandre Fayolle Date: Mon, 16 Feb 2015 11:06:14 +0100 Subject: [PATCH] fix pep8 E731 (do not assign a lambda, use a def) --- base_partner_merge/base_partner_merge.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/base_partner_merge/base_partner_merge.py b/base_partner_merge/base_partner_merge.py index 1cc1eca75..d0f64219f 100644 --- a/base_partner_merge/base_partner_merge.py +++ b/base_partner_merge/base_partner_merge.py @@ -388,8 +388,9 @@ class MergePartnerAutomatic(orm.TransientModel): " merge several contacts linked to existing Journal " "Items.")) - call_it = lambda function: function(cr, uid, src_partners, - dst_partner, context=context) + def call_it(function): + function(cr, uid, src_partners, + dst_partner, context=context) call_it(self._update_foreign_keys) call_it(self._update_reference_fields)