Skip to content

Commit 14b08f7

Browse files
committed
build: refactor configure.py
- Replace usage of the deprecated `distutils` library with the `packaging` library recommended by setuptools' "Porting from Distutils" guide. - 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. - Remove unused return value of the `configure_section_file()` function.
1 parent dad0b07 commit 14b08f7

File tree

1 file changed

+124
-124
lines changed

1 file changed

+124
-124
lines changed

0 commit comments

Comments
 (0)