[PATCH eac V6] Add support for <functionRelation> in <cpfRelation>

Denis Laxalde denis.laxalde at logilab.fr
Tue Aug 13 09:46:36 CEST 2019

Guillaume Vandevelde a ├ęcrit :
> The method .pop() will raise an error if the key doesn't exist, I have to
> check it existence.

d.pop(<key>, <default value>) returns <default value> if <key> is not in d.

Hence what I initially suggested:

  relationship = elem.attrib.pop('functionRelationType', None)

More information about the saem-devel mailing list