def _serial_sanitizer(instr):
    '''Replaces the last 1/4 of a string with X's'''
    length = len(instr)
    index = int(math.floor(length * .75))
    return '{0}{1}'.format(instr[:index], 'X' * (index - length))
dataset/ETHPy150Open saltstack/salt/salt/modules/grains.py/_serial_sanitizer/swapped operands of `-`