Skip to content

Commit

Permalink
build: refactor configure.py
Browse files Browse the repository at this point in the history
- Explicitly specify the encoding when opening files.
- Use f-strings to format strings.
- Use `isinstance()` for type checks instead of `type()`.
- Use the `with` keyword for resource-allocating operations.
- Avoid using multiple statements in a single line.
- Remove unnecessary `else` clauses after `return`.
- Iterate with the `items()` method of dictionaries when both the key
and value are used.
- Remove unnecessary parentheses.
- Rename unused unpacked variables to `_`, `_1`, etc etc.
- Rename the `list` variable to avoid conflict with the global
`list()` function.
- Remove unused `path` parameter of the `icu_download()` function.
- Use the `pathlib` library for paths instead of `os.path`.
  • Loading branch information
VoltrexKeyva committed Apr 16, 2023
1 parent 46a3cff commit dec8698
Showing 1 changed file with 170 additions and 174 deletions.
Loading

0 comments on commit dec8698

Please sign in to comment.