Merge branch 'master' into 1795-rename-async-module

This commit is contained in:
Diego Oliveira 2018-06-12 18:16:31 -03:00
commit 557b91964c
3 changed files with 9 additions and 6 deletions

View File

@ -36,8 +36,9 @@ PULL_REQUEST_URI = 'https://github.com/benoitc/gunicorn/pull/%s'
def format_settings(app): def format_settings(app):
settings_file = os.path.join(app.srcdir, "settings.rst") settings_file = os.path.join(app.srcdir, "settings.rst")
ret = [] ret = []
for i, s in enumerate(guncfg.KNOWN_SETTINGS): known_settings = sorted(guncfg.KNOWN_SETTINGS, key=lambda s: s.section)
if i == 0 or s.section != guncfg.KNOWN_SETTINGS[i - 1].section: for i, s in enumerate(known_settings):
if i == 0 or s.section != known_settings[i - 1].section:
ret.append("%s\n%s\n\n" % (s.section, "-" * len(s.section))) ret.append("%s\n%s\n\n" % (s.section, "-" * len(s.section)))
ret.append(fmt_setting(s)) ret.append(fmt_setting(s))

View File

@ -2,14 +2,16 @@
Changelog Changelog
========= =========
19.9.0 / not released 19.x / not released
===================== ===================
- fix: prevent raising :exc:`AttributeError` when ``--reload`` is not passed
in case of a :exc:`SyntaxError` raised from the WSGI application.
(:issue:`1805`, :pr:`1806`)
- The internal module ``gunicorn.workers.async`` was renamed to ``gunicorn.workers.base_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`)
19.8.1 / 2018/04/30 19.8.1 / 2018/04/30
=================== ===================

View File

@ -137,7 +137,7 @@ class Worker(object):
try: try:
self.wsgi = self.app.wsgi() self.wsgi = self.app.wsgi()
except SyntaxError as e: except SyntaxError as e:
if self.cfg.reload == 'off': if not self.cfg.reload:
raise raise
self.log.exception(e) self.log.exception(e)