[libvirt] [PATCH Rust] api_tests.py: update to use Python 3

liushuyu@aosc.io posted 1 patch 1 week ago
Failed in applying to current master (apply log)
tools/api_tests.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

[libvirt] [PATCH Rust] api_tests.py: update to use Python 3

Posted by liushuyu@aosc.io 1 week ago
From: liushuyu <liushuyu011@gmail.com>

---
 tools/api_tests.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/api_tests.py b/tools/api_tests.py
index b26ec34..9e66c92 100644
--- a/tools/api_tests.py
+++ b/tools/api_tests.py
@@ -47,10 +47,10 @@ def main():
             else:
                 missing.add(el)
 
-    print "missing: %s, implemented: %s" % (len(missing), len(implemented))
-    print "missing:"
+    print("missing: %s, implemented: %s" % (len(missing), len(implemented)))
+    print("missing:")
     for x in missing:
-        print x.attrib
+        print(x.attrib)
     #print "implemented:"
     #for x in implemented:
     #    print x.attrib
-- 
2.23.0

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list