From 5e80ca9e449163e6d0cad4f0b40a8eb2eb85b490 Mon Sep 17 00:00:00 2001 From: Rune Tynan Date: Wed, 27 May 2020 03:39:26 -0400 Subject: [PATCH] Fix stubtest failures for path files on windows (#4096) --- stdlib/2/os/path.pyi | 2 +- stdlib/2/os2emxpath.pyi | 2 +- stdlib/2and3/ntpath.pyi | 2 +- stdlib/2and3/posixpath.pyi | 2 +- stdlib/3/os/path.pyi | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/stdlib/2/os/path.pyi b/stdlib/2/os/path.pyi index 76a4c4b8d..fb789c2fb 100644 --- a/stdlib/2/os/path.pyi +++ b/stdlib/2/os/path.pyi @@ -167,7 +167,7 @@ else: def splitdrive(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ... def splitext(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ... -if sys.platform == 'win32': +if sys.version_info < (3, 7) and sys.platform == 'win32': def splitunc(path: AnyStr) -> Tuple[AnyStr, AnyStr]: ... # deprecated if sys.version_info < (3,): diff --git a/stdlib/2/os2emxpath.pyi b/stdlib/2/os2emxpath.pyi index 76a4c4b8d..fb789c2fb 100644 --- a/stdlib/2/os2emxpath.pyi +++ b/stdlib/2/os2emxpath.pyi @@ -167,7 +167,7 @@ else: def splitdrive(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ... def splitext(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ... -if sys.platform == 'win32': +if sys.version_info < (3, 7) and sys.platform == 'win32': def splitunc(path: AnyStr) -> Tuple[AnyStr, AnyStr]: ... # deprecated if sys.version_info < (3,): diff --git a/stdlib/2and3/ntpath.pyi b/stdlib/2and3/ntpath.pyi index 76a4c4b8d..fb789c2fb 100644 --- a/stdlib/2and3/ntpath.pyi +++ b/stdlib/2and3/ntpath.pyi @@ -167,7 +167,7 @@ else: def splitdrive(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ... def splitext(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ... -if sys.platform == 'win32': +if sys.version_info < (3, 7) and sys.platform == 'win32': def splitunc(path: AnyStr) -> Tuple[AnyStr, AnyStr]: ... # deprecated if sys.version_info < (3,): diff --git a/stdlib/2and3/posixpath.pyi b/stdlib/2and3/posixpath.pyi index 76a4c4b8d..fb789c2fb 100644 --- a/stdlib/2and3/posixpath.pyi +++ b/stdlib/2and3/posixpath.pyi @@ -167,7 +167,7 @@ else: def splitdrive(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ... def splitext(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ... -if sys.platform == 'win32': +if sys.version_info < (3, 7) and sys.platform == 'win32': def splitunc(path: AnyStr) -> Tuple[AnyStr, AnyStr]: ... # deprecated if sys.version_info < (3,): diff --git a/stdlib/3/os/path.pyi b/stdlib/3/os/path.pyi index 76a4c4b8d..fb789c2fb 100644 --- a/stdlib/3/os/path.pyi +++ b/stdlib/3/os/path.pyi @@ -167,7 +167,7 @@ else: def splitdrive(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ... def splitext(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ... -if sys.platform == 'win32': +if sys.version_info < (3, 7) and sys.platform == 'win32': def splitunc(path: AnyStr) -> Tuple[AnyStr, AnyStr]: ... # deprecated if sys.version_info < (3,):