##// END OF EJS Templates
Fix HEAD requests for kernelspec resources...
Fix HEAD requests for kernelspec resources Closes gh-7237 Closes gh-7258 StaticFileHandler.get() is a coroutine. When Tornado calls a handler method, it uses the return value to determine whether or not it's a coroutine. So when head() calls get(), it needs to pass the return value on for Tornado to handle it properly.

File last commit:

r17765:7c1173bb
r19601:f0bcc52a
Show More
__init__.py
15 lines | 334 B | text/x-python | PythonLexer
try:
from appnope import *
except ImportError:
__version__ = '0.0.5'
import sys
import platform
from distutils.version import LooseVersion as V
if sys.platform != "darwin" or V(platform.mac_ver()[0]) < V("10.9"):
from ._dummy import *
else:
from ._nope import *
del sys, platform, V