mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Change _async to base_async
This commit is contained in:
parent
43e31c366b
commit
5a82e7c068
@ -5,7 +5,7 @@ Changelog
|
|||||||
19.9.0 / 2018/05/26
|
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
|
since ``async`` is now a reserved word in Python 3.7
|
||||||
(:pr:`1527`)
|
(:pr:`1527`)
|
||||||
|
|
||||||
|
|||||||
@ -24,7 +24,7 @@ from eventlet.wsgi import ALREADY_HANDLED as EVENTLET_ALREADY_HANDLED
|
|||||||
import greenlet
|
import greenlet
|
||||||
|
|
||||||
from gunicorn.http.wsgi import sendfile as o_sendfile
|
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):
|
def _eventlet_sendfile(fdout, fdin, offset, nbytes):
|
||||||
while True:
|
while True:
|
||||||
|
|||||||
@ -27,7 +27,7 @@ from gevent import pywsgi
|
|||||||
|
|
||||||
import gunicorn
|
import gunicorn
|
||||||
from gunicorn.http.wsgi import base_environ
|
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
|
from gunicorn.http.wsgi import sendfile as o_sendfile
|
||||||
|
|
||||||
VERSION = "gevent/%s gunicorn/%s" % (gevent.__version__, gunicorn.__version__)
|
VERSION = "gevent/%s gunicorn/%s" % (gevent.__version__, gunicorn.__version__)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user