Port stub for os.walk from python 3 to 2 and cleanup comment.

This commit is contained in:
Tim Abbott
2016-01-25 17:29:10 -08:00
committed by Guido van Rossum
parent c17d0120a9
commit c2555b3119
2 changed files with 6 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
# created from https://docs.python.org/2/library/os.html
from typing import List, Tuple, Union, Sequence, Mapping, IO, Any, Optional, AnyStr, MutableMapping
from typing import List, Tuple, Union, Sequence, Mapping, IO, Any, Optional, AnyStr, MutableMapping, Iterator
import os.path as path
error = OSError
@@ -134,7 +134,10 @@ def rmdir(path: unicode) -> None: ...
# TODO(MichalPokorny)
def stat(path: unicode) -> Any: ...
# TODO: stat_float_times, statvfs, tempnam, tmpnam, TMP_MAX, walk
# TODO: stat_float_times, statvfs, tempnam, tmpnam, TMP_MAX
def walk(top: AnyStr, topdown: bool = ..., onerror: Any = ...,
followlinks: bool = ...) -> Iterator[Tuple[AnyStr, List[AnyStr],
List[AnyStr]]]: ...
def symlink(source: unicode, link_name: unicode) -> None: ...
def unlink(path: unicode) -> None: ...