def __init__(self, expr, out='out'):

        warnings.simplefilter('always', DeprecationWarning)
        warnings.warn("ConstraintComp is deprecated, see the new add_constraint interface.",
                      DeprecationWarning,stacklevel=2)
        warnings.simplefilter('ignore', DeprecationWarning)

        newexpr = _combined_expr(expr)
        super(ConstraintComp, self).__init__("%s = %s" % (out, newexpr))
dataset/ETHPy150Open OpenMDAO/OpenMDAO/openmdao/components/constraint.py/ConstraintComp.__init__/original