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):
AIOFile.OPERATION_CLASS = ThreadedAIOOperation
AIOFile.IO_READ = IO_READ
AIOFile.IO_NOP = IO_NOP
AIOFile.IO_WRITE = IO_WRITE
return AIOFile(name, mode)
def thread_aio_file(name, mode):
AIOFile.OPERATION_CLASS = ThreadedAIOOperation
AIOFile.IO_READ = IO_READ
AIOFile.IO_NOP = IO_NOP
AIOFile.IO_WRITE = IO_WRITE
return AIOFile(name, mode)