(propertyListData)
return plist
Deserialize a property list from a NSData, str, unicode or buffer

    Returns an Objective-C property list.
Deserialize a property list from a NSData, str, unicode or buffer
Deserialize a property list from a NSData str unicode or buffer
def deserializePropertyList(propertyListData):
    """
    Deserialize a property list from a NSData, str, unicode or buffer

    Returns an Objective-C property list.
    """
    if isinstance(propertyListData, str):
        propertyListData = buffer(propertyListData)
    elif isinstance(propertyListData, unicode):
        propertyListData = buffer(propertyListData.encode('utf-8'))
    plist, fmt, err = Foundation.NSPropertyListSerialization.propertyListFromData_mutabilityOption_format_errorDescription_(propertyListData, Foundation.NSPropertyListMutableContainers, None, None)
    if err is not None:
        # braindead API!
        errStr = err.encode('utf-8')
        err.release()
        raise ValueError(errStr)
    return plist
def deserializePropertyList ( propertyListData ) : if isinstance ( propertyListData , str ) : propertyListData = buffer ( propertyListData ) elif isinstance ( propertyListData , unicode ) : propertyListData = buffer ( propertyListData . encode ( 'utf-8' ) ) plist , fmt , err = Foundation . NSPropertyListSerialization . propertyListFromData_mutabilityOption_format_errorDescription_ ( propertyListData , Foundation . NSPropertyListMutableContainers , None , None ) if err is not None : # braindead API! errStr = err . encode ( 'utf-8' ) err . release ( ) raise ValueError ( errStr ) return plist