Home
last modified time | relevance | path

Searched refs:pathOrFile (Results 1 – 4 of 4) 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/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)``