def raise_404_if_not_version(req, min_version, max_version=None):
 want_version = req.environ[MICROVERSION_ENVIRON]
 if (not want_version.matches(min_version, max_version)):
  raise webob.exc.HTTPNotFound

def raise_404_if_not_version ( req , min_version , max_version = None ) : want_version = req . environ [ MICROVERSION_ENVIRON ] if ( not want_version . matches ( min_version , max_version ) ) : raise webob . exc . HTTPNotFound
utility to raise a 404 if the wanted microversion does not match .