qmp.py: Avoid overriding a builtin object
commit7b6b9dbb3c4cb7eac4c847d601735da9b1d150ce
authorLukáš Doktor <ldoktor@redhat.com>
Fri, 18 Aug 2017 14:26:12 +0000 (18 16:26 +0200)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 15 Sep 2017 23:12:00 +0000 (15 20:12 -0300)
tree7ca6dad3540ba50a94e044216f7226238e492bb0
parent2cb05a3f3613f633b916b854cfaf04c663ccc953
qmp.py: Avoid overriding a builtin object

The "id" is a builtin method to get object's identity and should not be
overridden. This might bring some issues in case someone was directly
calling "cmd(..., id=id)" but I haven't found such usage on brief search
for "cmd\(.*id=".

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20170818142613.32394-10-ldoktor@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
scripts/qmp/qmp.py