Skip to content

Commit

Permalink
fix for #1516
Browse files Browse the repository at this point in the history
  • Loading branch information
pbiering committed Dec 6, 2024
1 parent 675c5ce commit d9e15dd
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 d9e15dd

Please sign in to comment.