From 9faa2d2e2ea92605017663ce2cdbfb8b0de034db Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Thu, 27 Nov 2025 15:01:40 +1100 Subject: [PATCH] Revert "Use defusedxml" This reverts commit 1a7359fc3cf6c3dd7e86030ebcdc64c18efae5a3. --- poetry.lock | 13 +------------ pyproject.toml | 1 - src/jinjaturtle/core.py | 2 +- tests/test_core.py | 2 +- 4 files changed, 3 insertions(+), 15 deletions(-) diff --git a/poetry.lock b/poetry.lock index b455963..8891448 100644 --- a/poetry.lock +++ b/poetry.lock @@ -461,17 +461,6 @@ ssh = ["bcrypt (>=3.1.5)"] test = ["certifi (>=2024)", "cryptography-vectors (==46.0.3)", "pretend (>=0.7)", "pytest (>=7.4.0)", "pytest-benchmark (>=4.0)", "pytest-cov (>=2.10.1)", "pytest-xdist (>=3.5.0)"] test-randomorder = ["pytest-randomly"] -[[package]] -name = "defusedxml" -version = "0.7.1" -description = "XML bomb protection for Python stdlib modules" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" -files = [ - {file = "defusedxml-0.7.1-py2.py3-none-any.whl", hash = "sha256:a352e7e428770286cc899e2542b6cdaedb2b4953ff269a210103ec58f6198a61"}, - {file = "defusedxml-0.7.1.tar.gz", hash = "sha256:1bb3032db185915b62d7c6209c5a8792be6a32ab2fedacc84e01b52c51aa3e69"}, -] - [[package]] name = "desktop-entry-lib" version = "5.0" @@ -1193,4 +1182,4 @@ type = ["pytest-mypy"] [metadata] lock-version = "2.0" python-versions = "^3.10" -content-hash = "b9153226d96d26f633a7d95ba83b05e78a0063d4c5471b5e0d5f928a4cae0a57" +content-hash = "17e97a5516576384aafd227385b42be9178527537a52ab44e8797816534b5193" diff --git a/pyproject.toml b/pyproject.toml index 01b192b..977325b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,6 @@ repository = "https://git.mig5.net/mig5/jinjaturtle" python = "^3.10" PyYAML = "^6.0" tomli = { version = "^2.0.0", python = "<3.11" } -defusedxml = "^0.7.1" [tool.poetry.group.dev.dependencies] pytest = "^7.0" diff --git a/src/jinjaturtle/core.py b/src/jinjaturtle/core.py index 5541b61..a4dce7e 100644 --- a/src/jinjaturtle/core.py +++ b/src/jinjaturtle/core.py @@ -2,10 +2,10 @@ from __future__ import annotations import configparser import json +import xml.etree.ElementTree as ET import yaml from collections import Counter, defaultdict -from defusedxml import ElementTree as ET from pathlib import Path from typing import Any, Iterable diff --git a/tests/test_core.py b/tests/test_core.py index ba692cb..8e65697 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -1,11 +1,11 @@ from __future__ import annotations -from defusedxml import ElementTree as ET from pathlib import Path import configparser import pytest import textwrap import yaml +import xml.etree.ElementTree as ET import jinjaturtle.core as core from jinjaturtle.core import (