Skip to content

Commit

Permalink
Merge pull request #1644 from pbiering/fix-python3.14
Browse files Browse the repository at this point in the history
Fixes for Python 3.14
  • Loading branch information
pbiering authored Dec 6, 2024
2 parents 675c5ce + d9e15dd commit ff5fae1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion radicale/httputils.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@
import importlib.abc
from importlib import resources

_TRAVERSABLE_LIKE_TYPE = Union[importlib.abc.Traversable, pathlib.Path]
if sys.version_info < (3, 13):
_TRAVERSABLE_LIKE_TYPE = Union[importlib.abc.Traversable, pathlib.Path]
else:
_TRAVERSABLE_LIKE_TYPE = Union[importlib.resources.abc.Traversable, pathlib.Path]

NOT_ALLOWED: types.WSGIResponse = (
client.FORBIDDEN, (("Content-Type", "text/plain"),),
Expand Down

0 comments on commit ff5fae1

Please sign in to comment.