def __init__(self):
        libc = ctypes.CDLL(ctypes.util.find_library('c'), use_errno=True)

        try:
            c_tee = libc.tee
        except AttributeError:
            self._c_tee = None
            return

        c_tee.argtypes = [
            ctypes.c_int,
            ctypes.c_int,
            ctypes.c_size_t,
            ctypes.c_uint
        ]

        c_tee.restype = c_ssize_t

        def errcheck(result, func, arguments):
            if result == -1:
                errno = ctypes.set_errno(0)

                raise IOError(errno, os.strerror(errno) % 'tee: %s')
            else:
                return result

        c_tee.errcheck = errcheck

        self._c_tee = c_tee
dataset/ETHPy150Open openstack/swift/swift/common/splice.py/Tee.__init__/swapped operands of `%`