Since 2.6, the plistlib module is not Mac-specific.

This commit is contained in:
Guido van Rossum
2016-09-13 13:34:40 -07:00
parent 312725ed5d
commit 08d1069d6b

View File

@@ -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):