Use sys.platform instead of comments (#2286)

This commit is contained in:
Yusuke Miyazaki
2018-07-04 00:13:04 +09:00
committed by Jelle Zijlstra
parent 6192cce9d9
commit 1ae2ba0fbe
5 changed files with 343 additions and 294 deletions

View File

@@ -136,7 +136,9 @@ def exit(arg: object = ...) -> NoReturn:
raise SystemExit()
def getcheckinterval() -> int: ... # deprecated
def getdefaultencoding() -> str: ...
def getdlopenflags() -> int: ... # Unix only
if sys.platform != 'win32':
# Unix only
def getdlopenflags() -> int: ...
def getfilesystemencoding() -> str: ...
def getrefcount(arg: Any) -> int: ...
def getrecursionlimit() -> int: ...
@@ -178,6 +180,7 @@ class _WinVersion(Tuple[int, int, int, int,
def getwindowsversion() -> _WinVersion: ... # Windows only
def intern(string: str) -> str: ...
if sys.version_info >= (3, 5):