Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def posix_aio_file(name, mode, **kwargs):
AIOFile.OPERATION_CLASS = posix_aio.AIOOperation
AIOFile.IO_READ = posix_aio.IO_READ
AIOFile.IO_NOP = posix_aio.IO_NOP
AIOFile.IO_WRITE = posix_aio.IO_WRITE
return AIOFile(name, mode, **kwargs)