chrome/installer/mac/signing/commands.py
def read_plist(path):
    """Loads Plist at |path| and returns it as a dictionary."""
    if sys.version_info.major == 2:
        fd, name = tempfile.mkstemp()
        try:
            subprocess.check_call(
                ['plutil', '-convert', 'xml1', '-o', name, path])
            with os.fdopen(fd, 'rb') as f:
                return plistlib.readPlist(f)
        finally:
            os.unlink(name)
    else:
        with open(path, 'rb') as f:
            return plistlib.load(f)
Loads Plist at |path| and returns it as a dictionary.
Loads Plist at |path| and returns it as a dictionary.
Loads Plist at |path| and returns it as a dictionary .
def read_plist(path):
    if sys.version_info.major == 2:
        fd, name = tempfile.mkstemp()
        try:
            subprocess.check_call(
                ['plutil', '-convert', 'xml1', '-o', name, path])
            with os.fdopen(fd, 'rb') as f:
                return plistlib.readPlist(f)
        finally:
            os.unlink(name)
    else:
        with open(path, 'rb') as f:
            return plistlib.load(f)
def read_plist ( path ) : if sys . version_info . major == 2 : fd , name = tempfile . mkstemp ( ) try : subprocess . check_call ( [ 'plutil' , '-convert' , 'xml1' , '-o' , name , path ] ) with os . fdopen ( fd , 'rb' ) as f : return plistlib . readPlist ( f ) finally : os . unlink ( name ) else : with open ( path , 'rb' ) as f : return plistlib . load ( f )
Loads Plist at |path| and returns it as a dictionary.
Loads Plist at |path| and returns it as a dictionary .
"""Loads Plist at |path| and returns it as a dictionary."""
path