Re: [Qemu-devel] [PATCH v1 10/26] tests/vm: Port basevm to Python 3

2019-05-30 Thread Philippe Mathieu-Daudé
On 5/30/19 12:15 PM, Alex Bennée wrote: > From: Wainer dos Santos Moschetta > > Fixed tests/vm/basevm.py to run with Python 3: > - hashlib.sha1() requires an binary encoded object. > - uses floor division ("//") (PEP 238). > - decode bytes to unicode when needed. > > Signed-off-by: Wainer dos

[Qemu-devel] [PATCH v1 10/26] tests/vm: Port basevm to Python 3

2019-05-30 Thread Alex Bennée
From: Wainer dos Santos Moschetta Fixed tests/vm/basevm.py to run with Python 3: - hashlib.sha1() requires an binary encoded object. - uses floor division ("//") (PEP 238). - decode bytes to unicode when needed. Signed-off-by: Wainer dos Santos Moschetta Reviewed-by: Philippe Mathieu-Daudé