Home
last modified time | relevance | path

Searched refs:pathOrFile (Results 1 – 7 of 7) sorted by relevance

/external/python/cpython2/Lib/
Dplistlib.py68 def readPlist(pathOrFile): argument
74 if isinstance(pathOrFile, (str, unicode)):
75 pathOrFile = open(pathOrFile)
78 rootObject = p.parse(pathOrFile)
80 pathOrFile.close()
84 def writePlist(rootObject, pathOrFile): argument
89 if isinstance(pathOrFile, (str, unicode)):
90 pathOrFile = open(pathOrFile, "w")
92 writer = PlistWriter(pathOrFile)
97 pathOrFile.close()
[all …]
/external/python/cpython2/Doc/library/
Dplistlib.rst46 .. function:: readPlist(pathOrFile)
48 Read a plist file. *pathOrFile* may either be a file name or a (readable)
57 .. function:: writePlist(rootObject, pathOrFile)
59 Write *rootObject* to a plist file. *pathOrFile* may either be a file name
136 pl = readPlist(pathOrFile)
/external/python/cpython3/Lib/
Dplistlib.py80 def _maybe_open(pathOrFile, mode): argument
81 if isinstance(pathOrFile, str):
82 with open(pathOrFile, mode) as fp:
86 yield pathOrFile
89 def readPlist(pathOrFile): argument
99 with _maybe_open(pathOrFile, 'rb') as fp:
102 def writePlist(value, pathOrFile): argument
111 with _maybe_open(pathOrFile, 'wb') as fp:
/external/python/cpython3/Doc/library/
Dplistlib.rst129 .. function:: readPlist(pathOrFile)
131 Read a plist file. *pathOrFile* may be either a file name or a (readable
145 .. function:: writePlist(rootObject, pathOrFile)
147 Write *rootObject* to an XML plist file. *pathOrFile* may be either a file name
/external/python/cpython2/Lib/plat-mac/
Dpimp.py452 def dump(self, pathOrFile): argument
468 plist.write(pathOrFile)
/external/python/cpython2/Misc/
DHISTORY2467 interface for reading and writing plist files: ``readPlist(pathOrFile)``
2468 and ``writePlist(rootObject, pathOrFile)``
/external/python/cpython3/Misc/
DHISTORY19851 interface for reading and writing plist files: ``readPlist(pathOrFile)``
19852 and ``writePlist(rootObject, pathOrFile)``