Revision a182a3ed lib/hypervisor/hv_kvm.py
b/lib/hypervisor/hv_kvm.py | ||
---|---|---|
185 | 185 |
return QmpMessage(data) |
186 | 186 |
|
187 | 187 |
def __str__(self): |
188 |
# The protocol expects the JSON object to be sent as a single |
|
189 |
# line, hence the need for indent=False. |
|
190 |
return serializer.DumpJson(self.data, indent=False) |
|
188 |
# The protocol expects the JSON object to be sent as a single line. |
|
189 |
return serializer.DumpJson(self.data) |
|
191 | 190 |
|
192 | 191 |
def __eq__(self, other): |
193 | 192 |
# When comparing two QmpMessages, we are interested in comparing |
Also available in: Unified diff