parameters: (self, plist_path)
docstring: Loads into a memory a plist possibly encoded in binary format.
  
      This is a wrapper around plistlib.readPlist that tries to convert the
      plist to the XML format if it can't be parsed (assuming that it is in
      the binary format).
  
      Args:
        plist_path: string, path to a plist file, in XML or binary format
  
      Returns:
        Content of the plist as a dictionary.
docstring_summary: Loads into a memory a plist possibly encoded in binary format.
docstring_tokens: Loads into a memory a plist possibly encoded in binary format .
function: def _LoadPlistMaybeBinary(self, plist_path):
      """Loads into a memory a plist possibly encoded in binary format.
  
      This is a wrapper around plistlib.readPlist that tries to convert the
      plist to the XML format if it can't be parsed (assuming that it is in
      the binary format).
  
      Args:
        plist_path: string, path to a plist file, in XML or binary format
  
      Returns:
        Content of the plist as a dictionary.
      """
      try:
        # First, try to read the file using plistlib that only supports XML,
        # and if an exception is raised, convert a temporary copy to XML and
        # load that copy.
        return plistlib.readPlist(plist_path)
      except:
        pass
      with tempfile.NamedTemporaryFile() as temp:
        shutil.copy2(plist_path, temp.name)
        subprocess.check_call(['plutil', '-convert', 'xml1', temp.name])
        return plistlib.readPlist(temp.name)
function_tokens: def _LoadPlistMaybeBinary ( self , plist_path ) : try : # First, try to read the file using plistlib that only supports XML, # and if an exception is raised, convert a temporary copy to XML and # load that copy. return plistlib . readPlist ( plist_path ) except : pass with tempfile . NamedTemporaryFile ( ) as temp : shutil . copy2 ( plist_path , temp . name ) subprocess . check_call ( [ 'plutil' , '-convert' , 'xml1' , temp . name ] ) return plistlib . readPlist ( temp . name )