def _warn_color_binding(binding):
    msg = "The '%s' attribute has been removed. Use '%s' instead. "
    msg += "Compatibility will be removed in Enaml version 0.8.0."
    d = {
        'fgcolor': ('fgcolor', 'foreground'),
        'bgcolor': ('bgcolor', 'background')
    }
    msg = d[binding.name] % msg
    lineno = binding.lineno
    filename = binding.root().filename
    reg = _warn_color_registry
    import warnings
    warnings.warn_explicit(msg, FutureWarning, filename, lineno, '', reg)
dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/core/operators.py/_warn_color_binding/swapped operands of `%`