mirror of
https://github.com/electron/node-gyp.git
synced 2025-08-15 04:48:20 +02:00
chore: get update-gyp.py to work with Python >= v3.5 (#2826)
* chore: get update-gyp.py to work with Python v3.9 * Ruff ignore rule PLC1901 --------- Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
parent
41882a975b
commit
337e8e6820
2 changed files with 2 additions and 2 deletions
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
|
@ -13,7 +13,7 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: pip install --user ruff
|
||||
- run: ruff --format=github --select="E,F,PLC,PLE,UP,W,YTT" --ignore="S101,UP031" --target-version=py37 .
|
||||
- run: ruff --format=github --select="E,F,PLC,PLE,UP,W,YTT" --ignore="PLC1901,S101,UP031" --target-version=py37 .
|
||||
Tests:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
|
|
@ -49,7 +49,7 @@ with tempfile.TemporaryDirectory() as tmp_dir:
|
|||
if not is_within_directory(path, member_path):
|
||||
raise Exception("Attempted Path Traversal in Tar File")
|
||||
|
||||
tar.extractall(path, members, numeric_owner)
|
||||
tar.extractall(path, members, numeric_owner=numeric_owner)
|
||||
|
||||
safe_extract(tar_ref, unzip_target)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue