parameters: (pathOrFile)
return_statement: return rootObject
docstring: 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).
docstring_summary: 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).
docstring_tokens: 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 ) .
function: 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
function_tokens: 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