def create_eventloop(inputhook=None, recognize_win32_paste=True):
 if is_windows():
  from prompt_toolkit.eventloop.win32 import Win32EventLoop as Loop
  return Loop(inputhook=inputhook, recognize_paste=recognize_win32_paste)
 else:
  from prompt_toolkit.eventloop.posix import PosixEventLoop as Loop
  return Loop(inputhook=inputhook)

def create_eventloop ( inputhook = None , recognize_win32_paste = True ) : if is_windows ( ) : from prompt_toolkit . eventloop . win32 import Win32EventLoop as Loop return Loop ( inputhook = inputhook , recognize_paste = recognize_win32_paste ) else : from prompt_toolkit . eventloop . posix import PosixEventLoop as Loop return Loop ( inputhook = inputhook )
create and return an :class:~prompt_toolkit .