def algorithm_from_text(text):
 value = _algorithm_by_text.get(text.upper())
 if (value is None):
  value = int(text)
 return value

def algorithm_from_text ( text ) : value = _algorithm_by_text . get ( text . upper ( ) ) if ( value is None ) : value = int ( text ) return value
convert text into a dnssec algorithm value @rtype: int .