From 023881d3b718da0c7bd3d24588fcce9c1e7fbb8f Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Sun, 27 Jul 2025 14:28:40 +0100 Subject: Update tarfile.extractall usage to be safer Removes the DeprecationWarning we were receiving for using this method without specifying a suitable filter argument. --- pydis_site/apps/content/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pydis_site/apps/content/utils.py') 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 -- cgit v1.2.3