diff options
author | 2018-01-09 13:27:04 +0100 | |
---|---|---|
committer | 2018-02-24 01:43:40 +0100 | |
commit | 369d5a85bb782ecf63c5bae9686c7e6104eea991 (patch) | |
tree | 224a1ffa29e984ecb85dc213bdf6d4293c2bffaf /tools/perf/scripts/python/export-to-postgresql.py | |
parent | tools/kvm_stat: use a more pythonic way to iterate over dictionaries (diff) | |
download | linux-dev-369d5a85bb782ecf63c5bae9686c7e6104eea991.tar.xz linux-dev-369d5a85bb782ecf63c5bae9686c7e6104eea991.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions