Merge pull request #57 from timabbott/tabbott-stubs

Fix several python 2 library stub errors.
This commit is contained in:
Guido van Rossum
2016-01-25 16:39:08 -08:00

View File

@@ -141,7 +141,8 @@ def unlink(path: unicode) -> None: ...
def utime(path: unicode, times: Optional[Tuple[int, int]]) -> None: ...
def abort() -> None: ...
# TODO: exec*, _exit, EX_*
# TODO: exec*, EX_*
def _exit(n: int) -> None: ...
def fork() -> int:
raise OSError()
@@ -158,8 +159,8 @@ def nice(increment: int) -> int: ...
def startfile(path: unicode, operation: str) -> None: ...
def system(command: unicode) -> int: ...
def times() -> Tuple[float, float, float, float, float]: ...
def wait() -> int: ...
def waitpid(pid: int, options: int) -> int:
def wait() -> Tuple[int, int]: ... # Unix only
def waitpid(pid: int, options: int) -> Tuple[int, int]:
raise OSError()
# TODO: wait3, wait4, W...
def confstr(name: Union[str, int]) -> Optional[str]: ...