def _GetInstanceConsole(ctx, inst):
  consinfo = ctx.console[inst.uuid]

  if consinfo is None:
    return _FS_UNAVAIL

  return consinfo
A unicode-friendly version of re.escape.
dataset/ETHPy150Open ganeti/ganeti/lib/query.py/_GetInstanceConsole--crossover with--dataset/ETHPy150Open jek/flatland/flatland/util/base.py/re_uescape