Searched refs:pathOrFile (Results 1 – 7 of 7) sorted by relevance
/external/python/cpython2/Lib/ |
D | plistlib.py | 68 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/ |
D | plistlib.rst | 46 .. 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/ |
D | plistlib.py | 80 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/ |
D | plistlib.rst | 129 .. 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/ |
D | pimp.py | 452 def dump(self, pathOrFile): argument 468 plist.write(pathOrFile)
|
/external/python/cpython2/Misc/ |
D | HISTORY | 2467 interface for reading and writing plist files: ``readPlist(pathOrFile)`` 2468 and ``writePlist(rootObject, pathOrFile)``
|
/external/python/cpython3/Misc/ |
D | HISTORY | 19851 interface for reading and writing plist files: ``readPlist(pathOrFile)`` 19852 and ``writePlist(rootObject, pathOrFile)``
|