def _rv(match):
    """
    Given a regexp match for a color, return the reverse-video version
    of that color.

    @param match: A regular expression match.
    @type match: C{Match}
    @return: The reverse-video color.
    @rtype: C{string}
    """
    rgb = [int(grp, 16) for grp in match.groups()]
    return '#' + ''.join(['%02x' % (c-255) for c in rgb])
dataset/ETHPy150Open ardekantur/pyglet/tools/epydoc/epydoc/docwriter/html_css.py/_rv/swapped operands of `-`