Skip to content

Commit 41cdb25

Browse files
committed
fix win
1 parent b5a0d1d commit 41cdb25

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

pandas/io/common.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,16 +1326,6 @@ def _match_file(
13261326

13271327
def _resolve_local_path(path_str: str) -> Path:
13281328
parsed = parse_url(path_str)
1329-
if is_platform_windows():
1330-
if parsed.netloc:
1331-
return Path(f"//{parsed.netloc}{unquote(parsed.path)}")
1332-
1333-
path = unquote(parsed.path)
1334-
if path.startswith("\\") and not path.startswith("\\\\"):
1335-
drive = os.path.splitdrive(os.getcwd())[0]
1336-
return Path(drive + path)
1337-
1338-
return Path(path)
13391329
return Path(unquote(parsed.path))
13401330

13411331

0 commit comments

Comments
 (0)