def LoadPlist(self, plist):
    try:
      # try to detect a binary plist, and then load it.
      self._BinLoadHeader(plist)
      self._LoadBinary(plist)
    except BinaryPlistHeaderError:
      # it's not binary, it's likely XML.
      self._LoadDocument(plist)
    except BinaryPlistVersionError:
      # to be consistent, don't raise this exception yet.
      # let it occur on call to Parse().  load the binary plist now.
      self._LoadBinary(plist)
Load a plist in binary or XML format.
dataset/ETHPy150Open google/simian/src/simian/mac/munki/plist.py/ApplePlist.LoadPlist