def getOpenProfile(profileFilename):
 try:
  return ImageCmsProfile(profileFilename)
 except (IOError, TypeError, ValueError) as v:
  raise PyCMSError(v)

def getOpenProfile ( profileFilename ) : try : return ImageCmsProfile ( profileFilename ) except ( IOError , TypeError , ValueError ) as v : raise PyCMSError ( v )
opens an icc profile file .