def media_type_matches(lhs, rhs):
 lhs = _MediaType(lhs)
 rhs = _MediaType(rhs)
 return lhs.match(rhs)

def media_type_matches ( lhs , rhs ) : lhs = _MediaType ( lhs ) rhs = _MediaType ( rhs ) return lhs . match ( rhs )
returns true if the media type in the first argument <= the media type in the second argument .