def readPlistFromString(data):
    plistData = buffer(data)
    dataObject, plistFormat, error = \
     NSPropertyListSerialization.propertyListFromData_mutabilityOption_format_errorDescription_(
                    plistData, NSPropertyListMutableContainers, None, None)
    if error:
        error = error.encode('ascii', 'ignore')
        raise NSPropertyListSerializationException(error)
    else:
        return dataObject
Read a plist data from a string. Return the root object.
dataset/ETHPy150Open grahamgilbert/Crypt/Crypt/FoundationPlist.py/readPlistFromString