def isIntentSupported(profile, intent, direction):
 try:
  if (not isinstance(profile, ImageCmsProfile)):
   profile = ImageCmsProfile(profile)
  if profile.profile.is_intent_supported(intent, direction):
   return 1
  else:
   return (-1)
 except (AttributeError, IOError, TypeError, ValueError) as v:
  raise PyCMSError(v)

def isIntentSupported ( profile , intent , direction ) : try : if ( not isinstance ( profile , ImageCmsProfile ) ) : profile = ImageCmsProfile ( profile ) if profile . profile . is_intent_supported ( intent , direction ) : return 1 else : return ( - 1 ) except ( AttributeError , IOError , TypeError , ValueError ) as v : raise PyCMSError ( v )
checks if a given intent is supported .