Commit abe4ada1 authored by Jérome Perrin's avatar Jérome Perrin

remove non used class SelectMovementError, and simplify code a little


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44227 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3ab53e26
......@@ -46,7 +46,6 @@ class MatrixError(Exception): pass
class DuplicatedPropertyDictKeysError(Exception): pass
class SelectMethodError(Exception): pass
class SelectMovementError(Exception): pass
class BuilderMixin(XMLObject, Amount, Predicate):
"""
......@@ -321,7 +320,7 @@ class BuilderMixin(XMLObject, Amount, Predicate):
for instance_to_update in instance_list:
result, property_dict = self._test(
instance_to_update, movement_group_node_list, divergence_list)
if result == True:
if result:
instance = instance_to_update
break
return instance, property_dict
......
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