Commit 05883cdb 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 78353768
......@@ -101,7 +101,7 @@ class ImmobilisationMovement(Movement, XMLObject):
def checkValuesAreNotNone(property_list):
errors = []
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)
if value is not None:
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