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

@@ -9,7 +9,7 @@ from typing import (
)
import sys
from builtins import OSError as error
import os.path as path
from . import path
# ----- os variables -----