[CRIU] [PATCH 2/7] pycriu: add python package, v3
Ruslan Kuprieiev
kupruser at gmail.com
Tue Dec 2 06:28:57 PST 2014
On 12/02/2014 04:18 PM, Pavel Emelyanov wrote:
>
>> + def SerializeToStringTXT(self, nice=False):
>> + s = io.BytesIO('')
>> +
>> + if nice:
>> + magic = self.desc.magic_name
>> + indent = 4
>
> BTW, this indentation seem to be useless. When printing
> nested messages google code indents one anyway.
>
> Thus I think we can stop inventing nice and raw formats
> and just pick any of those. Likely the nice one.
>
I agree.
>> + else:
>> + magic = self.desc.magic
>> + indent = 0
>
More information about the CRIU
mailing list