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