Commit 26b884f3 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Jérome Perrin

fixup! fixup! py2/py3: stop using deprecated string functions, that are removed in python 3.

parent 3be19a8a
...@@ -101,7 +101,7 @@ class ImmobilisationMovement(Movement, XMLObject): ...@@ -101,7 +101,7 @@ class ImmobilisationMovement(Movement, XMLObject):
def checkValuesAreNotNone(property_list): def checkValuesAreNotNone(property_list):
errors = [] errors = []
for key, value, name in property_list: for key, value, name in property_list:
value = 'get' + ''.join(capitalize(e) for e in value.split('_')) value = 'get' + ''.join(e.capitalize() for e in value.split('_'))
value = getattr(self, value, None) value = getattr(self, value, None)
if value is not None: if value is not None:
value = value() value = value()
......
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