Add os.replace()

This commit is contained in:
James Tatum
2016-05-07 13:22:16 -07:00
committed by Guido van Rossum
parent e2ce50b525
commit 33fe6a0685

View File

@@ -7,6 +7,7 @@ from typing import (
Mapping, MutableMapping, Dict, List, Any, Tuple, Iterator, overload, Union, AnyStr,
Optional, Generic, Set
)
import sys
from builtins import OSError as error
import os.path as path
@@ -254,6 +255,8 @@ def remove(path: AnyStr) -> None: ...
def removedirs(path: AnyStr) -> None: ...
def rename(src: AnyStr, dst: AnyStr) -> None: ...
def renames(old: AnyStr, new: AnyStr) -> None: ...
if sys.version_info >= (3, 3):
def replace(src: AnyStr, dst: AnyStr) -> None: ...
def rmdir(path: AnyStr) -> None: ...
def stat(path: AnyStr) -> stat_result: ...
def stat_float_times(newvalue: Union[bool, None] = ...) -> bool: ...