Commit 738df37f authored by Rafael Monnerat's avatar Rafael Monnerat

erp5_core: Fixup Coding style tests

parent cbc8268f
...@@ -124,7 +124,7 @@ class Delivery(XMLObject, ImmobilisationDelivery, SimulableMixin, ...@@ -124,7 +124,7 @@ class Delivery(XMLObject, ImmobilisationDelivery, SimulableMixin,
elif base_contribution is not None: elif base_contribution is not None:
base_contribution_list = (base_contribution,) base_contribution_list = (base_contribution,)
else: else:
base_contribution_list = [] base_contribution_list = []
if isinstance(use, (tuple, list)): if isinstance(use, (tuple, list)):
use_list = use use_list = use
elif use is not None: elif use is not None:
...@@ -148,7 +148,7 @@ class Delivery(XMLObject, ImmobilisationDelivery, SimulableMixin, ...@@ -148,7 +148,7 @@ class Delivery(XMLObject, ImmobilisationDelivery, SimulableMixin,
result = 0 result = 0
else: else:
matched_movement_list = [ matched_movement_list = [
movement movement
for movement in self.getMovementList() for movement in self.getMovementList()
if set(movement.getBaseContributionValueList()).intersection(base_contribution_value_list) if set(movement.getBaseContributionValueList()).intersection(base_contribution_value_list)
or set(movement.getUseValueList()).intersection(use_value_list)] or set(movement.getUseValueList()).intersection(use_value_list)]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment