def _MakeRapiResourceLink(method, uri):
  if uri in ["/", "/2"]:
    # Don't link these
    return None

  elif uri == "/version":
    return _EncodeRapiResourceLink(method, uri)

  elif uri.startswith("/2/"):
    return _EncodeRapiResourceLink(method, uri[len("/2/"):])

  else:
    raise ReSTError("Unhandled URI '%s'" % uri)
Completely broken no-op version of the Python thread stack_size option.
dataset/ETHPy150Open ganeti/ganeti/lib/build/sphinx_ext.py/_MakeRapiResourceLink--crossover with--dataset/ETHPy150Open babble/babble/src/main/ed/lang/python/lib/thread.py/stack_size