Skip to content

Commit

Permalink
let syntax compatible with Python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
jdum committed Dec 14, 2024
1 parent 47c9857 commit ab5275e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion odfdo/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ def _xml_content(self, pretty: bool = True) -> bytes:

def _save_xml(self, target: Path | str | io.BytesIO, pretty: bool = True) -> None:
"""Save a XML flat ODF format from the available parts."""
if isinstance(target, (Path | str)):
if isinstance(target, (Path, str)):
target = Path(target).with_suffix(".xml")
target.write_bytes(self._xml_content(pretty))
else:
Expand Down

0 comments on commit ab5275e

Please sign in to comment.