def _ConvertPattern(value):
  if isinstance(value, UriPattern):
    return "(%s)" % value.content
  else:
    return value
Converts URI pattern into a regular expression group.
dataset/ETHPy150Open ganeti/ganeti/lib/rapi/connector.py/_ConvertPattern