Skip to content

Commit 337e8e6

Browse files
rzhao271cclauss
andauthored
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 <[email protected]>
1 parent 41882a9 commit 337e8e6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v3
1515
- run: pip install --user ruff
16-
- run: ruff --format=github --select="E,F,PLC,PLE,UP,W,YTT" --ignore="S101,UP031" --target-version=py37 .
16+
- run: ruff --format=github --select="E,F,PLC,PLE,UP,W,YTT" --ignore="PLC1901,S101,UP031" --target-version=py37 .
1717
Tests:
1818
strategy:
1919
fail-fast: false

update-gyp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def safe_extract(tar, path=".", members=None, *, numeric_owner=False):
4949
if not is_within_directory(path, member_path):
5050
raise Exception("Attempted Path Traversal in Tar File")
5151

52-
tar.extractall(path, members, numeric_owner)
52+
tar.extractall(path, members, numeric_owner=numeric_owner)
5353

5454
safe_extract(tar_ref, unzip_target)
5555

0 commit comments

Comments
 (0)