[GRASS-git] [OSGeo/grass] 7e6971: man: Remove FileType argument types in parser stan...
Edouard Choinière
noreply at github.com
Thu May 15 08:45:17 PDT 2025
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: 7e69717e6cdfcf7b3bbc767f3efe948f1e7ee119
https://github.com/OSGeo/grass/commit/7e69717e6cdfcf7b3bbc767f3efe948f1e7ee119
Author: Edouard Choinière <27212526+echoix at users.noreply.github.com>
Date: 2025-05-15 (Thu, 15 May 2025)
Changed paths:
M man/build.py
M man/parser_standard_options.py
Log Message:
-----------
man: Remove FileType argument types in parser standard options arguments (#5561)
* man: Write a help description for output argument of Parser standard option
* man: Remove usage of FileType argument type in parser standard options
The argparse FileType argument type will be deprecated in Python 3.14. It does not properly close files if a subsequent error in another FileType argument occurs when parsing. The suggestion is to use context managers after parsing the arguments. The implementation of the changes is inspired by a PR doing the same in the CPython repo.
* man: Remove proxies=None from urlopen, as it is for the old interface
* man: Add typing annotations to related changes of parser standard options
* man: Fix name of file by using outfile.name
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