In Python 3.4 and above, os.makedirs and os.removedirs use the kwarg "name" rather than "path" (#1536)

This commit is contained in:
Adam Dangoor
2017-08-09 02:42:29 +01:00
committed by Guido van Rossum
parent d60f26c448
commit 7fe417ca58

View File

@@ -321,15 +321,22 @@ def major(device: int) -> int: ...
def minor(device: int) -> int: ...
def makedev(major: int, minor: int) -> int: ...
def mkdir(path: _PathType, mode: int = ...) -> None: ...
def makedirs(path: _PathType, mode: int = ...,
exist_ok: bool = ...) -> None: ...
if sys.version_info >= (3, 4):
def makedirs(name: _PathType, mode: int = ...,
exist_ok: bool = ...) -> None: ...
else:
def makedirs(path: _PathType, mode: int = ...,
exist_ok: bool = ...) -> None: ...
def pathconf(path: _PathType, name: Union[str, int]) -> int: ... # Unix only
if sys.version_info >= (3, 6):
def readlink(path: Union[AnyStr, PathLike[AnyStr]]) -> AnyStr: ...
else:
def readlink(path: AnyStr) -> AnyStr: ...
def remove(path: _PathType) -> None: ...
def removedirs(path: _PathType) -> None: ...
if sys.version_info >= (3, 4):
def removedirs(name: _PathType) -> None: ...
else:
def removedirs(path: _PathType) -> None: ...
def rename(src: _PathType, dst: _PathType) -> None: ...
def renames(old: _PathType, new: _PathType) -> None: ...
if sys.version_info >= (3, 3):