[CRIU] [PATCH] pycriu: images: pb2dict: perform pb<->json conversion properly

Pavel Emelyanov xemul at parallels.com
Thu Jan 15 08:50:57 PST 2015


On 01/15/2015 06:49 PM, Ruslan Kuprieiev wrote:
> Currently we are handling conversion in the simplest way, by
> just parsing protobuf text format representation of pb message,
> splitting string in half and storing values wrapped in ""-s
> in python dict. Which leads to a bunch of errors, like,
> for example, when converting bytes fields. It also doesn't
> handle types properly.
> 
> This patch introduces a proper way to handle pb<->json conversion
> by iterating through pb fields and properly storing them in dict
> or properly extracting values from dict.
> 
> Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com>

Applied, thanks.



More information about the CRIU mailing list