Skip to content

Commit 089c9c5

Browse files
VoltrexKeyvatargos
authored andcommittedMay 3, 2023
build: refactor configure.py
- 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. PR-URL: #47667 Reviewed-By: Christian Clauss <[email protected]>
1 parent 6d87355 commit 089c9c5

File tree

1 file changed

+121
-125
lines changed

1 file changed

+121
-125
lines changed
 

0 commit comments

Comments
 (0)
Please sign in to comment.