WSL2-Linux-Kernel/tools/hv
Ani Sinha e1313fa9d2 vmbus_testing: fix wrong python syntax for integer value comparison
[ Upstream commit ed0cf84e9c ]

It is incorrect in python to compare integer values using the "is" keyword.
The "is" keyword in python is used to compare references to two objects,
not their values. Newer version of python3 (version 3.8) throws a warning
when such incorrect comparison is made. For value comparison, "==" should
be used.

Fix this in the code and suppress the following warning:

/usr/sbin/vmbus_testing:167: SyntaxWarning: "is" with a literal. Did you mean "=="?

Signed-off-by: Ani Sinha <anisinha@redhat.com>
Link: https://lore.kernel.org/r/20230705134408.6302-1-anisinha@redhat.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-19 12:22:28 +02:00
..
Build Tools: hv: move to tools buildsystem 2019-08-20 11:31:45 -04:00
Makefile Tools: hv: move to tools buildsystem 2019-08-20 11:31:45 -04:00
hv_fcopy_daemon.c Tools: hv: Reopen the devices if read() or write() returns errors 2020-01-26 22:10:10 -05:00
hv_get_dhcp_info.sh tools: hv: fix typos in toolchain 2019-08-17 15:29:28 -04:00
hv_get_dns_info.sh Tools: hv: Add an example script to retrieve DNS entries 2012-09-04 15:59:27 -07:00
hv_kvp_daemon.c tools: hv: change http to https in hv_kvp_daemon.c 2020-07-06 10:46:23 +00:00
hv_set_ifconfig.sh tools: hv: fix typos in toolchain 2019-08-17 15:29:28 -04:00
hv_vss_daemon.c Tools: hv: Reopen the devices if read() or write() returns errors 2020-01-26 22:10:10 -05:00
lsvmbus tools: hv: fixed Python pep8/flake8 warnings for lsvmbus 2019-08-17 15:29:18 -04:00
vmbus_testing vmbus_testing: fix wrong python syntax for integer value comparison 2023-09-19 12:22:28 +02:00