From 77af85649ba19fac3319e927838f813dc2f5af19 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Fri, 21 Apr 2017 16:25:10 -0700 Subject: [PATCH] Revert "Sadly symlinks don't work on Windows. (#1173)" (#1189) This reverts commit 8b835f95001b61734c6b147d3aa6eb4fbe7bce03. (Because we've fixed the issue in python/mypy#3213.) --- stdlib/3/macpath.pyi | 47 +------------------------------------------- stdlib/3/ntpath.pyi | 47 +------------------------------------------- 2 files changed, 2 insertions(+), 92 deletions(-) mode change 100644 => 120000 stdlib/3/macpath.pyi mode change 100644 => 120000 stdlib/3/ntpath.pyi diff --git a/stdlib/3/macpath.pyi b/stdlib/3/macpath.pyi deleted file mode 100644 index 7d8bb0948d92..000000000000 --- a/stdlib/3/macpath.pyi +++ /dev/null @@ -1,46 +0,0 @@ -# Stubs for os.path -# Ron Murawski - -# based on http://docs.python.org/3.2/library/os.path.html - -from typing import Any, List, Tuple, IO - -# ----- os.path variables ----- -supports_unicode_filenames = False - -# ----- os.path function stubs ----- -def abspath(path: str) -> str: ... -def basename(path) -> str: ... -def commonprefix(list: List[str]) -> str: ... -def dirname(path: str) -> str: ... -def exists(path: str) -> bool: ... -def lexists(path: str) -> bool: ... -def expanduser(path: str) -> str: ... -def expandvars(path: str) -> str: ... -def getatime(path: str) -> int: - ... # return float if os.stat_float_times() returns True -def getmtime(path: str) -> int: - ... # return float if os.stat_float_times() returns True -def getctime(path: str) -> int: - ... # return float if os.stat_float_times() returns True -def getsize(path: str) -> int: ... -def isabs(path: str) -> bool: ... -def isfile(path: str) -> bool: ... -def isdir(path: str) -> bool: ... -def islink(path: str) -> bool: ... -def ismount(path: str) -> bool: ... -def join(path: str, *paths: str) -> str: ... -def normcase(path: str) -> str: ... -def normpath(path: str) -> str: ... -def realpath(path: str) -> str: ... -def relpath(path: str, start: str = ...) -> str: ... -def samefile(path1: str, path2: str) -> bool: ... - -def sameopenfile(fp1: IO[Any], fp2: IO[Any]) -> bool: ... - -# def samestat(stat1: stat_result, stat2: stat_result) -> bool: -# ... # Unix only -def split(path: str) -> Tuple[str, str]: ... -def splitdrive(path: str) -> Tuple[str, str]: ... -def splitext(path: str) -> Tuple[str, str]: ... -# def splitunc(path: str) -> Tuple[str, str] : ... # Windows only, deprecated diff --git a/stdlib/3/macpath.pyi b/stdlib/3/macpath.pyi new file mode 120000 index 000000000000..d2d185799bcc --- /dev/null +++ b/stdlib/3/macpath.pyi @@ -0,0 +1 @@ +posixpath.pyi \ No newline at end of file diff --git a/stdlib/3/ntpath.pyi b/stdlib/3/ntpath.pyi deleted file mode 100644 index 7d8bb0948d92..000000000000 --- a/stdlib/3/ntpath.pyi +++ /dev/null @@ -1,46 +0,0 @@ -# Stubs for os.path -# Ron Murawski - -# based on http://docs.python.org/3.2/library/os.path.html - -from typing import Any, List, Tuple, IO - -# ----- os.path variables ----- -supports_unicode_filenames = False - -# ----- os.path function stubs ----- -def abspath(path: str) -> str: ... -def basename(path) -> str: ... -def commonprefix(list: List[str]) -> str: ... -def dirname(path: str) -> str: ... -def exists(path: str) -> bool: ... -def lexists(path: str) -> bool: ... -def expanduser(path: str) -> str: ... -def expandvars(path: str) -> str: ... -def getatime(path: str) -> int: - ... # return float if os.stat_float_times() returns True -def getmtime(path: str) -> int: - ... # return float if os.stat_float_times() returns True -def getctime(path: str) -> int: - ... # return float if os.stat_float_times() returns True -def getsize(path: str) -> int: ... -def isabs(path: str) -> bool: ... -def isfile(path: str) -> bool: ... -def isdir(path: str) -> bool: ... -def islink(path: str) -> bool: ... -def ismount(path: str) -> bool: ... -def join(path: str, *paths: str) -> str: ... -def normcase(path: str) -> str: ... -def normpath(path: str) -> str: ... -def realpath(path: str) -> str: ... -def relpath(path: str, start: str = ...) -> str: ... -def samefile(path1: str, path2: str) -> bool: ... - -def sameopenfile(fp1: IO[Any], fp2: IO[Any]) -> bool: ... - -# def samestat(stat1: stat_result, stat2: stat_result) -> bool: -# ... # Unix only -def split(path: str) -> Tuple[str, str]: ... -def splitdrive(path: str) -> Tuple[str, str]: ... -def splitext(path: str) -> Tuple[str, str]: ... -# def splitunc(path: str) -> Tuple[str, str] : ... # Windows only, deprecated diff --git a/stdlib/3/ntpath.pyi b/stdlib/3/ntpath.pyi new file mode 120000 index 000000000000..d2d185799bcc --- /dev/null +++ b/stdlib/3/ntpath.pyi @@ -0,0 +1 @@ +posixpath.pyi \ No newline at end of file