Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion ipykernel/eventloops.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,20 @@

import os
import sys
import platform

import zmq

from distutils.version import LooseVersion as V
from traitlets.config.application import Application
from IPython.utils import io
from IPython.lib.inputhook import _use_appnope

def _use_appnope():
"""Should we use appnope for dealing with OS X app nap?

Checks if we are on OS X 10.9 or greater.
"""
return sys.platform == 'darwin' and V(platform.mac_ver()[0]) >= V('10.9')

def _notify_stream_qt(kernel, stream):

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
]

extras_require = setuptools_args['extras_require'] = {
'test:python_version=="2.7"': ['mock'],
'test:python_version=="2.7"': ['mock', 'nose_warnings_filters'],
}

if 'setuptools' in sys.modules:
Expand Down