Re: [Qemu-devel] [PATCH] qmp: make qmp-shell work with python3

2019-06-20 Thread Igor Mammedov
On Thu, 20 Jun 2019 10:45:24 -0300 Eduardo Habkost wrote: > On Thu, Jun 20, 2019 at 11:11:03AM +0200, Igor Mammedov wrote: > > On Wed, 19 Jun 2019 09:29:24 -0400 > > Cleber Rosa wrote: > > > > > On Tue, Jun 18, 2019 at 10:29:31AM -0400, Igor Mammedov wrote: > > > > python3 doesn't have raw_

Re: [Qemu-devel] [PATCH] qmp: make qmp-shell work with python3

2019-06-20 Thread Eduardo Habkost
On Thu, Jun 20, 2019 at 11:11:03AM +0200, Igor Mammedov wrote: > On Wed, 19 Jun 2019 09:29:24 -0400 > Cleber Rosa wrote: > > > On Tue, Jun 18, 2019 at 10:29:31AM -0400, Igor Mammedov wrote: > > > python3 doesn't have raw_input(), so qmp-shell breaks. > > > Use input() instead and override it with

Re: [Qemu-devel] [PATCH] qmp: make qmp-shell work with python3

2019-06-20 Thread Igor Mammedov
On Wed, 19 Jun 2019 09:29:24 -0400 Cleber Rosa wrote: > On Tue, Jun 18, 2019 at 10:29:31AM -0400, Igor Mammedov wrote: > > python3 doesn't have raw_input(), so qmp-shell breaks. > > Use input() instead and override it with raw_input() > > if running on python2. > > > > Signed-off-by: Igor Mammed

Re: [Qemu-devel] [PATCH] qmp: make qmp-shell work with python3

2019-06-19 Thread Cleber Rosa
On Tue, Jun 18, 2019 at 10:29:31AM -0400, Igor Mammedov wrote: > python3 doesn't have raw_input(), so qmp-shell breaks. > Use input() instead and override it with raw_input() > if running on python2. > > Signed-off-by: Igor Mammedov > --- > scripts/qmp/qmp-shell | 6 +- > 1 file changed, 5 i

[Qemu-devel] [PATCH] qmp: make qmp-shell work with python3

2019-06-18 Thread Igor Mammedov
python3 doesn't have raw_input(), so qmp-shell breaks. Use input() instead and override it with raw_input() if running on python2. Signed-off-by: Igor Mammedov --- scripts/qmp/qmp-shell | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/qmp/qmp-shell b/scripts/qmp/q