summaryrefslogtreecommitdiff
path: root/common.gypi
diff options
context:
space:
mode:
authorMohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>2023-05-01 12:43:16 +0330
committerGitHub <noreply@github.com>2023-05-01 09:13:16 +0000
commita4cf6b204f0b160480153dc293ae748bf15225f9 (patch)
tree06b656ea9c9c5de2b90b8ae627f426f8f2bcae21 /common.gypi
parentb5fe45fb9a2fb30432bc446ec87cc2780f2ff679 (diff)
downloadnode-new-a4cf6b204f0b160480153dc293ae748bf15225f9.tar.gz
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: https://github.com/nodejs/node/pull/47667 Reviewed-By: Christian Clauss <cclauss@me.com>
Diffstat (limited to 'common.gypi')
0 files changed, 0 insertions, 0 deletions