diff options
author | Axis <77634274+blankRiot96@users.noreply.github.com> | 2022-06-25 15:33:02 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-25 18:03:02 +0800 |
commit | ece2960f1b2994c58c7978435309e46d241307ac (patch) | |
tree | a3b33ba75b224ef692b64def149ed145a29f8696 | |
parent | 88a5941598f706f447c92137521fcaf9137920fc (diff) | |
download | rneovim-ece2960f1b2994c58c7978435309e46d241307ac.tar.gz rneovim-ece2960f1b2994c58c7978435309e46d241307ac.tar.bz2 rneovim-ece2960f1b2994c58c7978435309e46d241307ac.zip |
build(gen_vimdoc): remove needless list creation and unused variable (#19079)
build(gen_vimdoc): remove needless list creation
-rwxr-xr-x | scripts/gen_vimdoc.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/gen_vimdoc.py b/scripts/gen_vimdoc.py index 220b099df5..22fd155d32 100755 --- a/scripts/gen_vimdoc.py +++ b/scripts/gen_vimdoc.py @@ -59,8 +59,8 @@ if sys.version_info < MIN_PYTHON_VERSION: print("requires Python {}.{}+".format(*MIN_PYTHON_VERSION)) sys.exit(1) -doxygen_version = tuple([int(i) for i in subprocess.check_output(["doxygen", "-v"], - universal_newlines=True).split()[0].split('.')]) +doxygen_version = tuple((int(i) for i in subprocess.check_output(["doxygen", "-v"], + universal_newlines=True).split()[0].split('.'))) if doxygen_version < MIN_DOXYGEN_VERSION: print("\nRequires doxygen {}.{}.{}+".format(*MIN_DOXYGEN_VERSION)) @@ -1096,7 +1096,6 @@ def main(config, args): docs = '' - i = 0 for filename in CONFIG[target]['section_order']: try: title, helptag, section_doc = sections.pop(filename) @@ -1104,7 +1103,6 @@ def main(config, args): msg(f'warning: empty docs, skipping (target={target}): {filename}') msg(f' existing docs: {sections.keys()}') continue - i += 1 if filename not in CONFIG[target]['append_only']: docs += sep docs += '\n%s%s' % (title, |