mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
parent
45fe8d1199
commit
a64d712f7a
@ -36,8 +36,9 @@ PULL_REQUEST_URI = 'https://github.com/benoitc/gunicorn/pull/%s'
|
||||
def format_settings(app):
|
||||
settings_file = os.path.join(app.srcdir, "settings.rst")
|
||||
ret = []
|
||||
for i, s in enumerate(guncfg.KNOWN_SETTINGS):
|
||||
if i == 0 or s.section != guncfg.KNOWN_SETTINGS[i - 1].section:
|
||||
known_settings = sorted(guncfg.KNOWN_SETTINGS, key=lambda s: s.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(fmt_setting(s))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user