Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def factory_method(*args, **kwargs):
from aioconsole.code import AsynchronousConsole
return AsynchronousConsole(locals=local_vars, *args, **kwargs)
def interact(banner=None, streams=None, locals=None,
prompt_control=None, stop=True,
handle_sigint=True, *, loop=None):
console = AsynchronousConsole(
streams,
locals=locals,
prompt_control=prompt_control,
loop=loop)
yield from console.interact(banner, stop, handle_sigint)