diff --git a/docs/source/news.rst b/docs/source/news.rst index eb9c4e49..ae28a7cb 100644 --- a/docs/source/news.rst +++ b/docs/source/news.rst @@ -5,7 +5,7 @@ Changelog 19.9.0 / 2018/05/26 =================== -- the internal module `gunicorn.workers.async` was renamed to `gunicorn.workers.async` +- the internal module `gunicorn.workers.async` was renamed to `gunicorn.workers.base_async` since ``async`` is now a reserved word in Python 3.7 (:pr:`1527`) diff --git a/gunicorn/workers/_async.py b/gunicorn/workers/base_async.py similarity index 100% rename from gunicorn/workers/_async.py rename to gunicorn/workers/base_async.py diff --git a/gunicorn/workers/geventlet.py b/gunicorn/workers/geventlet.py index 0c0fa1dc..189062c8 100644 --- a/gunicorn/workers/geventlet.py +++ b/gunicorn/workers/geventlet.py @@ -24,7 +24,7 @@ from eventlet.wsgi import ALREADY_HANDLED as EVENTLET_ALREADY_HANDLED import greenlet from gunicorn.http.wsgi import sendfile as o_sendfile -from gunicorn.workers._async import AsyncWorker +from gunicorn.workers.base_async import AsyncWorker def _eventlet_sendfile(fdout, fdin, offset, nbytes): while True: diff --git a/gunicorn/workers/ggevent.py b/gunicorn/workers/ggevent.py index ac9011be..fb9d9194 100644 --- a/gunicorn/workers/ggevent.py +++ b/gunicorn/workers/ggevent.py @@ -27,7 +27,7 @@ from gevent import pywsgi import gunicorn from gunicorn.http.wsgi import base_environ -from gunicorn.workers._async import AsyncWorker +from gunicorn.workers.base_async import AsyncWorker from gunicorn.http.wsgi import sendfile as o_sendfile VERSION = "gevent/%s gunicorn/%s" % (gevent.__version__, gunicorn.__version__)