def copy(self):  # pylint: disable=invalid-name
    if not hasattr(self, '_plist'):
      raise PlistNotParsedError

    # pylint: disable=protected-access
    new_plist = self.__class__()
    new_plist._validation_hooks = self._validation_hooks
    new_plist._plist = self._plist.copy()
    new_plist._plist_xml = self._plist_xml
    new_plist._plist_xml_encoding = self._plist_xml_encoding
    new_plist._plist_bin = self._plist_bin
    new_plist._plist_version = self._plist_version
    new_plist._changed = self._changed
    # pylint: enable=protected-access
    return new_plist
Return a new instance of this plist with the same values.
dataset/ETHPy150Open google/simian/src/simian/mac/munki/plist.py/ApplePlist.copy