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

Function _use_appnope

IPython/lib/inputhook.py:62–67  ·  view source on GitHub ↗

Should we use appnope for dealing with OS X app nap? Checks if we are on OS X 10.9 or greater.

()

Source from the content-addressed store, hash-verified

60 return True
61
62def _use_appnope():
63 """Should we use appnope for dealing with OS X app nap?
64
65 Checks if we are on OS X 10.9 or greater.
66 """
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)."""

Callers 4

enableMethod · 0.85
disableMethod · 0.85
enableMethod · 0.85
disable_qt4Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected