equal
deleted
inserted
replaced
101 |
101 |
102 def mtnrunstdio(self, *args, **kwargs): |
102 def mtnrunstdio(self, *args, **kwargs): |
103 # Prepare the command in automate stdio format |
103 # Prepare the command in automate stdio format |
104 kwargs = pycompat.byteskwargs(kwargs) |
104 kwargs = pycompat.byteskwargs(kwargs) |
105 command = [] |
105 command = [] |
106 for k, v in kwargs.iteritems(): |
106 for k, v in pycompat.iteritems(kwargs): |
107 command.append(b"%d:%s" % (len(k), k)) |
107 command.append(b"%d:%s" % (len(k), k)) |
108 if v: |
108 if v: |
109 command.append(b"%d:%s" % (len(v), v)) |
109 command.append(b"%d:%s" % (len(v), v)) |
110 if command: |
110 if command: |
111 command.insert(0, b'o') |
111 command.insert(0, b'o') |