(pathOrFile)
return rootObject
Read a .plist file. 'pathOrFile' may either be a file name or a
    (readable) file object. Return the unpacked root object (which
    usually is a dictionary).
Read a .plist file. 'pathOrFile' may either be a file name or a
    (readable) file object. Return the unpacked root object (which
    usually is a dictionary).
Read a . plist file . pathOrFile may either be a file name or a ( readable ) file object . Return the unpacked root object ( which usually is a dictionary ) .
def readPlist(pathOrFile):
    """Read a .plist file. 'pathOrFile' may either be a file name or a
    (readable) file object. Return the unpacked root object (which
    usually is a dictionary).
    """
    didOpen = 0
    if isinstance(pathOrFile, (str, unicode)):
        pathOrFile = open(pathOrFile)
        didOpen = 1
    p = PlistParser()
    rootObject = p.parse(pathOrFile)
    if didOpen:
        pathOrFile.close()
    return rootObject
def readPlist ( pathOrFile ) : didOpen = 0 if isinstance ( pathOrFile , ( str , unicode ) ) : pathOrFile = open ( pathOrFile ) didOpen = 1 p = PlistParser ( ) rootObject = p . parse ( pathOrFile ) if didOpen : pathOrFile . close ( ) return rootObject