MCPcopy Create free account
hub / github.com/ipython/ipython / _ignore_CTRL_C_posix

Function _ignore_CTRL_C_posix

IPython/lib/inputhook.py:69–71  ·  view source on GitHub ↗

Ignore CTRL+C (SIGINT).

()

Source from the content-addressed store, hash-verified

67 return sys.platform == 'darwin' and V(platform.mac_ver()[0]) >= V('10.9')
68
69def _ignore_CTRL_C_posix():
70 """Ignore CTRL+C (SIGINT)."""
71 signal.signal(signal.SIGINT, signal.SIG_IGN)
72
73def _allow_CTRL_C_posix():
74 """Take CTRL+C into account (SIGINT)."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected