def __contains__(self, line):
    'Return if a line is a member of the set.'
    specific = self._lines.get(line)
    if (specific is not None):
        return specific
    pos = bisect.bisect(self._transitions, line)
    return ((pos % 2) == 1)
Return if a line is a member of the set.
def __contains__(self, line):
    
    specific = self._lines.get(line)
    if (specific is not None):
        return specific
    pos = bisect.bisect(self._transitions, line)
    return ((pos % 2) == 1)