diff options
author | 2025-07-27 14:28:40 +0100 | |
---|---|---|
committer | 2025-07-27 14:40:30 +0100 | |
commit | 023881d3b718da0c7bd3d24588fcce9c1e7fbb8f (patch) | |
tree | 03f389c84f400b68b2b7c4e11fb9ef6815a107ef /pydis_site/apps | |
parent | Update site contributing guide to Python 3.13 (diff) |
Update tarfile.extractall usage to be safer
Removes the DeprecationWarning we were receiving for using this method
without specifying a suitable filter argument.
Diffstat (limited to 'pydis_site/apps')
-rw-r--r-- | pydis_site/apps/content/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pydis_site/apps/content/utils.py b/pydis_site/apps/content/utils.py index 720063e4..505a448d 100644 --- a/pydis_site/apps/content/utils.py +++ b/pydis_site/apps/content/utils.py @@ -108,7 +108,7 @@ def fetch_tags() -> list[Tag]: for file in repo.getmembers(): if "/bot/resources/tags" in file.path: included.append(file) - repo.extractall(folder, included) # noqa: S202 + repo.extractall(folder, included, filter="tar") for tag_file in Path(folder).rglob("*.md"): name = tag_file.name |