def ConvertToPMBConstraint(constraint):
    '''Converts the given constraint to a PyMoBu constraint type based on constraint description'''
    if isinstance(constraint, PMBConstraint):
        return constraint
    elif isinstance(constraint, FBConstraint):
        try:
            constClass = kConstraintClassDict[constraint.Description]
            return constClass(constraint)
        except KeyError:
            #logger.warning("Not Implemented: Unable to convert constraint '%s'. No PyMoBu class available" % constraint.LongName)
            return constraint
    else:
        raise TypeError(constraint.__class__.__name__ % "Object is not an instance of FBConstraint. Got '%s' instead.")
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/moBu/site-packages/PyMoBu-0.2/pymobu/components/constraints.py/ConvertToPMBConstraint/swapped operands of `%`