/opt/imh-python/lib/python3.9/site-packages/pexpect
NameSizeModeActions
__pycache__/-0755rm
ANSI.py121770644editdlrm
bashrc.sh4190644editdlrm
exceptions.py10680644editdlrm
expect.py138270644editdlrm
fdpexpect.py59910644editdlrm
FSM.py134190644editdlrm
popen_spawn.py61590644editdlrm
pty_spawn.py373820644editdlrm
pxssh.py244450644editdlrm
replwrap.py59510644editdlrm
run.py66290644editdlrm
screen.py137040644editdlrm
socket_pexpect.py48140644editdlrm
spawnbase.py216850644editdlrm
utils.py60190644editdlrm
_async.py9070644editdlrm
_async_pre_await.py34650644editdlrm
_async_w_await.py38020644editdlrm
__init__.py40890644editdlrm
Edit: /opt/imh-python/lib/python3.9/site-packages/pexpect/_async.py (907B)
"""Facade that provides coroutines implementation pertinent to running Py version. Python 3.5 introduced the async def/await syntax keyword. With later versions coroutines and methods to get the running asyncio loop are being deprecated, not supported anymore. For Python versions later than 3.6, coroutines and objects that are defined via ``async def``/``await`` keywords are imported. Here the code is just imported, to provide the same interface to older code. """ # pylint: disable=unused-import # flake8: noqa: F401 from sys import version_info as py_version_info # this assumes async def/await are more stable if py_version_info >= (3, 6): from pexpect._async_w_await import ( PatternWaiter, expect_async, repl_run_command_async, ) else: from pexpect._async_pre_await import ( PatternWaiter, expect_async, repl_run_command_async, )