Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

hemamaps / gunicorn   python

Repository URL to install this package:

Version: 19.6.0 

/ workers / gaiohttp.py

# -*- coding: utf-8 -
#
# This file is part of gunicorn released under the MIT license.
# See the NOTICE for more information.

import sys

if sys.version_info >= (3, 3):
    try:
        import aiohttp  # NOQA
    except ImportError:
        raise RuntimeError("You need aiohttp installed to use this worker.")
    else:
        from gunicorn.workers._gaiohttp import AiohttpWorker
        __all__ = ['AiohttpWorker']
else:
    raise RuntimeError("You need Python >= 3.3 to use the asyncio worker")