From 91ecc391d9a3f9903c7a1f03b2cccaa66cf77b07 Mon Sep 17 00:00:00 2001 From: Deepyaman Datta Date: Wed, 21 Oct 2020 07:10:40 -0400 Subject: [PATCH] Use PurePosixPath instead of Path --- kedro/io/partitioned_data_set.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kedro/io/partitioned_data_set.py b/kedro/io/partitioned_data_set.py index 67093c872f..d527713555 100644 --- a/kedro/io/partitioned_data_set.py +++ b/kedro/io/partitioned_data_set.py @@ -31,7 +31,7 @@ """ import operator from copy import deepcopy -from pathlib import Path +from pathlib import PurePosixPath from typing import Any, Callable, Dict, List, Tuple, Type, Union from urllib.parse import urlparse from warnings import warn @@ -55,7 +55,7 @@ def _grandparent(path: str) -> str: - path_obj = Path(path) + path_obj = PurePosixPath(path) grandparent = path_obj.parents[1] assert grandparent.name == path_obj.name return str(grandparent)