Skip to content

Commit

Permalink
Use PurePosixPath instead of Path
Browse files Browse the repository at this point in the history
  • Loading branch information
deepyaman committed Oct 21, 2020
1 parent 1232568 commit 91ecc39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kedro/io/partitioned_data_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 91ecc39

Please sign in to comment.