def _color_name_to_rgb(self, color):
        try:
            rgb = int(color, 16)
        except ValueError:
            raise
        else:
            r = (rgb >> 16) & 0xff
            g = (rgb >> 8) & 0xff
            b = rgb & 0xff
            return r, g, b
Create all rules for the provider IP DROPs.
dataset/ETHPy150Open jonathanslenders/python-prompt-toolkit/prompt_toolkit/terminal/vt100_output.py/_EscapeCodeCache._color_name_to_rgb--crossover with--dataset/ETHPy150Open nii-cloud/dodai-compute/nova/virt/libvirt/firewall.py/IptablesFirewallDriver._build_provider_fw_rules