def to_string(self):
        fmt = '<BBH'
        first = struct.pack(
            fmt,
            self._mode,
            self._cr_timeout,
            self._auto_eject_time
        )

        #crc = 0xffff - yubico_util.crc16(first)
        #second = first + struct.pack('<H', crc)
        return first
Cleans up the directory on an exceptional failure.
dataset/ETHPy150Open Yubico/python-yubico/yubico/yubikey_neo_usb_hid.py/YubiKeyNEO_DEVICE_CONFIG.to_string--crossover with--dataset/ETHPy150Open pre-commit/pre-commit/pre_commit/util.py/clean_path_on_failure