From 08d1069d6ba40a88255b0c22d534cdcf666834a8 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 13 Sep 2016 13:34:40 -0700 Subject: [PATCH] Since 2.6, the plistlib module is not Mac-specific. --- stdlib/2and3/plistlib.pyi | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/stdlib/2and3/plistlib.pyi b/stdlib/2and3/plistlib.pyi index 86e95df11..279019959 100644 --- a/stdlib/2and3/plistlib.pyi +++ b/stdlib/2and3/plistlib.pyi @@ -37,14 +37,13 @@ def writePlist(value: Mapping[str, Any], pathOrFile: Union[_Path, IO[bytes]]) -> def readPlistFromBytes(data: bytes) -> DictT[str, Any]: ... def writePlistToBytes(value: Mapping[str, Any]) -> bytes: ... if sys.version_info < (3,): - if sys.platform == 'darwin': - def readPlistFromResource(path: _Path, restype: str = ..., - resid: int = ...) -> DictT[str, Any]: ... - def writePlistToResource(rootObject: Mapping[str, Any], path: _Path, - restype: str = ..., - resid: int = ...) -> None: ... - def readPlistFromString(data: str) -> DictT[str, Any]: ... - def writePlistToString(rootObject: Mapping[str, Any]) -> str: ... + def readPlistFromResource(path: _Path, restype: str = ..., + resid: int = ...) -> DictT[str, Any]: ... + def writePlistToResource(rootObject: Mapping[str, Any], path: _Path, + restype: str = ..., + resid: int = ...) -> None: ... + def readPlistFromString(data: str) -> DictT[str, Any]: ... + def writePlistToString(rootObject: Mapping[str, Any]) -> str: ... if sys.version_info >= (3,): class Dict(dict):