def getProfileInfo(profile):
 try:
  if (not isinstance(profile, ImageCmsProfile)):
   profile = ImageCmsProfile(profile)
  description = profile.profile.product_description
  cpright = profile.profile.product_copyright
  arr = []
  for elt in (description, cpright):
   if elt:
    arr.append(elt)
  return ('\r\n\r\n'.join(arr) + '\r\n\r\n')
 except (AttributeError, IOError, TypeError, ValueError) as v:
  raise PyCMSError(v)

def getProfileInfo ( profile ) : try : if ( not isinstance ( profile , ImageCmsProfile ) ) : profile = ImageCmsProfile ( profile ) description = profile . profile . product_description cpright = profile . profile . product_copyright arr = [ ] for elt in ( description , cpright ) : if elt : arr . append ( elt ) return ( '\r\n\r\n' . join ( arr ) + '\r\n\r\n' ) except ( AttributeError , IOError , TypeError , ValueError ) as v : raise PyCMSError ( v )
gets the internal product information for the given profile .