test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts][PATCH V1] framework/qemu_libvirt: fix python3 SyntaxWarning
@ 2023-06-30 10:03 Wei Ling
  0 siblings, 0 replies; only message in thread
From: Wei Ling @ 2023-06-30 10:03 UTC (permalink / raw)
  To: dts; +Cc: Wei Ling

Fix SyntaxWarning from python3.8 by `is/is not` opeartion.

Signed-off-by: Wei Ling <weix.ling@intel.com>
---
 framework/qemu_libvirt.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/framework/qemu_libvirt.py b/framework/qemu_libvirt.py
index e99ce8fb..d7858a0f 100644
--- a/framework/qemu_libvirt.py
+++ b/framework/qemu_libvirt.py
@@ -808,7 +808,7 @@ class LibvirtKvm(VirtBase):
         for arg in args:
             cmd = cmd_head + " " + str(arg)
 
-        if command is "ping":
+        if command == "ping":
             out = self.host_session.send_expect(cmd, "# ", int(args[0]))
         else:
             out = self.host_session.send_expect(cmd, "# ")
-- 
2.34.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-06-30 10:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-30 10:03 [dts][PATCH V1] framework/qemu_libvirt: fix python3 SyntaxWarning Wei Ling

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).