Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit

Permalink
Adjust to "new" lxml behavior. (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
matz-e authored May 2, 2024
1 parent 2d10682 commit 35b40ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fz_td_recipe/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def load_xml(recipe):
"""Extract the xml root from `recipe`, which may either be a path or string."""
try:
# Parse the given XML file:
parser = etree.XMLParser(remove_comments=True)
parser = etree.XMLParser(remove_comments=True, resolve_entities=True)
tree = etree.parse(recipe, parser)
except (etree.XMLSyntaxError, etree.ParserError) as err:
logger.warning("could not parse xml of recipe '%s'", recipe)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies = [
"click",
"jsonschema",
"libsonata",
"lxml<5",
"lxml>=5",
"numpy",
"pandas[pyarrow]",
"pyyaml",
Expand Down

0 comments on commit 35b40ab

Please sign in to comment.