Gitlab Community Edition Instance

Commit 4abe1670 authored by Marcel Hellkamp's avatar Marcel Hellkamp
Browse files

Prefer ducktyping over hard-coded python versions

parent 70b0863b
......@@ -7,7 +7,7 @@ from requests_toolbelt import MultipartEncoder
__all__ = ("CDStar", "FormUpdate", "ApiError")
PATH_TYPES = (str,)
if sys.version_info >= (3, 6):
if hasattr(os, "PathLike"):
PATH_TYPES = (str, os.PathLike) # pragma: no cover
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment