in if/py/gen-py/fbnet/command_runner_asyncio/CommandRunner/Command.py [0:0]
def __repr__(self):
L = []
padding = ' ' * 4
if self.session is not None:
value = pprint.pformat(self.session, indent=0)
value = padding.join(value.splitlines(True))
L.append(' session=%s' % (value))
if self.command is not None:
value = pprint.pformat(self.command, indent=0)
value = padding.join(value.splitlines(True))
L.append(' command=%s' % (value))
if self.timeout is not None:
value = pprint.pformat(self.timeout, indent=0)
value = padding.join(value.splitlines(True))
L.append(' timeout=%s' % (value))
if self.prompt_regex is not None:
value = pprint.pformat(self.prompt_regex, indent=0)
value = padding.join(value.splitlines(True))
L.append(' prompt_regex=%s' % (value))
if self.client_ip is not None:
value = pprint.pformat(self.client_ip, indent=0)
value = padding.join(value.splitlines(True))
L.append(' client_ip=%s' % (value))
if self.client_port is not None:
value = pprint.pformat(self.client_port, indent=0)
value = padding.join(value.splitlines(True))
L.append(' client_port=%s' % (value))
if self.uuid is not None:
value = pprint.pformat(self.uuid, indent=0)
value = padding.join(value.splitlines(True))
L.append(' uuid=%s' % (value))
return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '')