MCPcopy Create free account
hub / github.com/pexpect/pexpect / _wrap_ptyprocess_err

Function _wrap_ptyprocess_err

pexpect/pty_spawn.py:20–25  ·  view source on GitHub ↗

Turn ptyprocess errors into our own ExceptionPexpect errors

()

Source from the content-addressed store, hash-verified

18
19@contextmanager
20def _wrap_ptyprocess_err():
21 """Turn ptyprocess errors into our own ExceptionPexpect errors"""
22 try:
23 yield
24 except ptyprocess.PtyProcessError as e:
25 raise ExceptionPexpect(*e.args)
26
27PY3 = (sys.version_info[0] >= 3)
28

Callers 3

closeMethod · 0.85
waitMethod · 0.85
isaliveMethod · 0.85

Calls 1

ExceptionPexpectClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…