def bool_xor()

in uberpoet/util.py [0:0]


def bool_xor(a, b):
    """Python's ^ operator is a bitwise xor, so we need to make a boolean equivalent function."""
    return (a and not b) or (not a and b)