@staticmethod
  def _SocatUnixConsoleParams():
    """Returns the correct parameters for socat

    If we have a new-enough socat we can use raw mode with an escape character.

    """
    if constants.SOCAT_USE_ESCAPE:
      return constants.SOCAT_ESCAPE_CODE % "raw,echo=0,escape=%s"
    else:
      return "echo=0,icanon=0"
dataset/ETHPy150Open ganeti/ganeti/lib/hypervisor/hv_kvm/__init__.py/KVMHypervisor._SocatUnixConsoleParams/swapped operands of `%`