import plistlib
import xml


def read_manifest_plist(path):
    """Given a path to a ProfileCreator manifest plist, return the contents of
    the plist."""
    with open(path, "rb") as openfile:
        try:
            return plistlib.load(openfile)
        except xml.parsers.expat.ExpatError:
            print("Error reading %s" % path)