[CRIU] [PATCH 2/7] pycriu: add python package, v3

Pavel Emelyanov xemul at parallels.com
Tue Dec 2 06:18:33 PST 2014


> +	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.

> +		else:
> +			magic = self.desc.magic
> +			indent = 0



More information about the CRIU mailing list