From: Yu Watanabe Date: Thu, 19 Feb 2026 17:11:03 +0000 (+0900) Subject: make-directive-index: apply "ruff format" X-Git-Tag: v261-rc1~126^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b24db05d42cd62642a5d3f19cd88a2d96eca24c;p=thirdparty%2Fsystemd.git make-directive-index: apply "ruff format" --- diff --git a/tools/make-directive-index.py b/tools/make-directive-index.py index 5398b452eff..ddf07534ef3 100755 --- a/tools/make-directive-index.py +++ b/tools/make-directive-index.py @@ -13,6 +13,7 @@ This index contains {count} entries in {sections} sections, referring to {pages} individual manual pages. ''' + def _extract_directives(directive_groups, formatting, page): t = xml_parse(page) section = t.find('./refmeta/manvolnum').text @@ -21,12 +22,13 @@ def _extract_directives(directive_groups, formatting, page): storopt = directive_groups['options'] for variablelist in t.iterfind('.//variablelist'): klass = variablelist.attrib.get('class') - searchpath = variablelist.attrib.get('xpath','./varlistentry/term/varname') + searchpath = variablelist.attrib.get('xpath', './varlistentry/term/varname') storvar = directive_groups[klass or 'miscellaneous'] #