[GRASS-git] [OSGeo/grass] 6c45ad: man: Use a context manager for opening files (#4291)

Edouard Choinière noreply at github.com
Sat Nov 23 11:06:59 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 6c45ad9cf279590b666bc15dae788aa9d74e5d90
      https://github.com/OSGeo/grass/commit/6c45ad9cf279590b666bc15dae788aa9d74e5d90
  Author: Edouard Choinière <27212526+echoix at users.noreply.github.com>
  Date:   2024-11-23 (Sat, 23 Nov 2024)

  Changed paths:
    M man/build_class.py
    M man/build_class_graphical.py
    M man/build_class_rest.py
    M man/build_full_index.py
    M man/build_full_index_rest.py
    M man/build_html.py
    M man/build_index_rest.py
    M man/build_keywords.py
    M man/build_rest.py
    M man/build_topics.py
    M pyproject.toml

  Log Message:
  -----------
  man: Use a context manager for opening files (#4291)

* man/build_html: Use context manager for get_desc

* man/build_topics: Use context managers for opening files

* man/build_rest: Replace read_file and write_file with Path.read_text and Path.write_text

* man/build_rest: Use context manager for get_desc

* man/build_index_rest: Use a context manager for opening file

* man/build_keywords: Use a context manager for opening files

* man/build_class_graphical: Use a context manager for opening files

* man/build_full_index_rest: Use a context manager for opening files

* man/build_full_index: Use a context manager for opening files

* man/build_class_rest: Use a context manager for opening files

* man/build_class: Use a context manager for opening files

* style: Remove unneeded SIM115 exclusions in man/

* man/build_topics: Use context managers for opening keyfile

* man/build_html: Add missing Path import

* man/build_keywords: Ignore line too long (E501)

* Sort imports in build_rest

* man/build_topics: write_footer need to be inside keyfile context manager



To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications


More information about the grass-commit mailing list