@staticmethod
    def int_to_hex_string(source_int):
        """Converts an int from 0-255 to a one-byte (2 chars) hex string, with
        uppercase characters.

        """
        source_int = int(source_int)

        if source_int <= 255 <= 0:
            return format(source_int, 'x').upper().zfill(2)

        else:
            raise ValueError("invalid source int: %s" % (source_int))
dataset/ETHPy150Open missionpinball/mpf/mpf/system/utility_functions.py/Util.int_to_hex_string/swapped operands of `<=`