Mercurial > public > mercurial-scm > hg-stable
diff doc/check-seclevel.py @ 43094:e8cf9ad52a78
formatting: run black on all file again
Apparently, since the blackgnarok, we divergence from the expected formatting.
Formatted using::
grey.py -S $(hg files 'set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**" - hgext/fsmonitor/pywatchman/** - contrib/grey.py')
# skip-blame mass-reformatting only
# no-check-commit reformats foo_bar functions
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 07 Oct 2019 10:58:51 -0400 |
parents | 86e4daa2d54c |
children | c102b704edb5 |
line wrap: on
line diff
--- a/doc/check-seclevel.py Mon Oct 07 11:51:34 2019 -0400 +++ b/doc/check-seclevel.py Mon Oct 07 10:58:51 2019 -0400 @@ -70,7 +70,9 @@ continue nextlevel = mark2level[mark] if curlevel < nextlevel and curlevel + 1 != nextlevel: - ui.warnnoi18n('gap of section level at "%s" of %s\n' % (title, name)) + ui.warnnoi18n( + 'gap of section level at "%s" of %s\n' % (title, name) + ) showavailables(ui, initlevel) errorcnt += 1 continue @@ -88,7 +90,9 @@ for k, entry in cmdtable.items(): name = k.split(b"|")[0].lstrip(b"^") if not entry[0].__doc__: - ui.notenoi18n('skip checking %s: no help document\n' % (namefmt % name)) + ui.notenoi18n( + 'skip checking %s: no help document\n' % (namefmt % name) + ) continue errorcnt += checkseclevel( ui, entry[0].__doc__, namefmt % name, initlevel @@ -113,7 +117,9 @@ ): mod = extensions.load(ui, name, None) if not mod.__doc__: - ui.notenoi18n('skip checking %s extension: no help document\n' % name) + ui.notenoi18n( + 'skip checking %s extension: no help document\n' % name + ) continue errorcnt += checkseclevel( ui, mod.__doc__, '%s extension' % name, initlevel_ext