def hex_colour(hex):
    if hex[0] is not '#':
        hex = hex[1:]
    return (
        int(hex[:2], 16),
        int(hex[2:4], 16),
        int(hex[4:6], 16),
    )
dataset/ETHPy150Open kmike/django-coverage/assets/badges/drone.io/badge_maker.py/hex_colour/operator `==` -> `is not`