change the way 'os' imports 'os.path' (#601)

* use 'from . import path' instead, in both PY2 and PY3
* update blacklist to include os/__init__.pyi
This commit is contained in:
Matthias Kramm
2016-10-17 17:49:12 -07:00
committed by Guido van Rossum
parent 5c4300a4bd
commit 94d3ddb60a
3 changed files with 6 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ from typing import (
List, Tuple, Union, Sequence, Mapping, IO, Any, Optional, AnyStr, Iterator,
MutableMapping, NamedTuple, overload
)
from os import path
from . import path
error = OSError
name = ... # type: str