def check_api_version(resource_root, min_version):
  """
  Checks if the resource_root's API version it at least the given minimum
  version.
  """
  if resource_root.version < min_version:
    raise Exception("API version %s is required but %s is in use."
        % (min_version, resource_root.version))
def check_api_version ( resource_root , min_version ) : if resource_root . version < min_version : raise Exception ( "API version %s is required but %s is in use." % ( min_version , resource_root . version ) )
Checks if the resource_root's API version it at least the given minimum
  version.