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:
Raymond Zhao 2023-04-06 11:07:02 -07:00 committed by GitHub
parent 41882a975b
commit 337e8e6820
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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)