def convert(cls, objectData): '''Convert the given object into a plist. * objectData -- The data for this object ''' string = StringIO(objectData) plist = CFPropertyList(string) plist.load() return native_types(plist.value)
def preprocess(self, **k): plist = CFPropertyList.CFPropertyList(k['keychain']) plist.load() self.entries = CFPropertyList.native_types(plist.value).get('version1')