[GRASS-git] [OSGeo/grass] 3bc6e9: grass.temporal.abstract_space_time_dataset: Use Pa...

Edouard Choinière noreply at github.com
Tue Sep 17 15:52:49 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 3bc6e957803ce5cafe25313e0b515bf8c8d1bd95
      https://github.com/OSGeo/grass/commit/3bc6e957803ce5cafe25313e0b515bf8c8d1bd95
  Author: Edouard Choinière <27212526+echoix at users.noreply.github.com>
  Date:   2024-09-17 (Tue, 17 Sep 2024)

  Changed paths:
    M pyproject.toml
    M python/grass/temporal/abstract_space_time_dataset.py

  Log Message:
  -----------
  grass.temporal.abstract_space_time_dataset: Use Path.read_text() to load SQL template files (#4335)

grass.temporal.abstract_space_time_dataset: Use Path.read_text() to load SQL template files

Fixes ResourceWarnings about unclosed files, fixing ruff SIM115 at the same time.

These 4 places were opening a file and reading it completely in the same line, but never closed explicitly the file, nor used a context manager that would kick in as much as possible on errors inside the calls.



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