Drop support for EOL Python 3.5

This commit is contained in:
Hugo van Kemenade 2020-08-11 22:29:44 +03:00
parent 10615a7da7
commit 1fe4070af6
2 changed files with 3 additions and 15 deletions

View File

@ -13,7 +13,6 @@ def test_is_path():
assert it_is
@pytest.mark.skipif(not _util.py36, reason="os.path support for Paths added in 3.6")
def test_path_obj_is_path():
# Arrange
from pathlib import Path

View File

@ -1,20 +1,9 @@
import os
import sys
py36 = sys.version_info[0:2] >= (3, 6)
from pathlib import Path
if py36:
from pathlib import Path
def isPath(f):
return isinstance(f, (bytes, str, Path))
else:
def isPath(f):
return isinstance(f, (bytes, str))
def isPath(f):
return isinstance(f, (bytes, str, Path))
# Checks if an object is a string, and that it points to a directory.