Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grass.gunittest: Use more Python 3 style code #2181

Merged
merged 1 commit into from
Feb 8, 2022

Conversation

wenzeslaus
Copy link
Member

  • 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.

* 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.
@wenzeslaus wenzeslaus added bug Something isn't working enhancement New feature or request Python Related code is in Python labels Feb 8, 2022
@wenzeslaus wenzeslaus merged commit 2fd5a53 into OSGeo:main Feb 8, 2022
@wenzeslaus wenzeslaus deleted the gunittest-python-3-style branch February 8, 2022 17:42
@wenzeslaus wenzeslaus added this to the 8.2.0 milestone Feb 16, 2022
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Oct 26, 2022
* 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.
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Feb 17, 2023
* 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.
neteler pushed a commit to nilason/grass that referenced this pull request Nov 7, 2023
* 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request Python Related code is in Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant