tools/kvm_stat: avoid 'is' for equality checks
authorMarc Hartmayer <mhartmay@linux.vnet.ibm.com>
Tue, 9 Jan 2018 12:27:04 +0000 (13:27 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 24 Feb 2018 00:43:40 +0000 (01:43 +0100)
commit369d5a85bb782ecf63c5bae9686c7e6104eea991
tree224a1ffa29e984ecb85dc213bdf6d4293c2bffaf
parent0eb578009a1d530a11846d7c4733a5db04730884
tools/kvm_stat: avoid 'is' for equality checks

Use '==' for equality checks and 'is' when comparing identities.

An example where '==' and 'is' behave differently:
>>> a = 4242
>>> a == 4242
True
>>> a is 4242
False

Signed-off-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/kvm/kvm_stat/kvm_stat