[GRASS-git] [OSGeo/grass] 2fd5a5: grass.gunittest: Use more Python 3 style code (#2181)
Vaclav Petras
noreply at github.com
Tue Feb 8 09:43:11 PST 2022
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: 2fd5a5337f660e80e7177f2930182f49bb63d45e
https://github.com/OSGeo/grass/commit/2fd5a5337f660e80e7177f2930182f49bb63d45e
Author: Vaclav Petras <wenzeslaus at gmail.com>
Date: 2022-02-08 (Tue, 08 Feb 2022)
Changed paths:
M python/grass/gunittest/main.py
Log Message:
-----------
grass.gunittest: Use more Python 3 style code (#2181)
* Use f-strings for simple string formatting.
* Use with statement for open.
* Simply return from main as in other parts of the function.
* Order imports better.
* Update to new import alias.
More information about the grass-commit
mailing list