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

Zixing Liu posted 1 patch 4 years, 5 months ago
Failed in applying to current master (apply log)
tools/api_tests.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
[libvirt] [PATCH Rust v2] api_tests.py: update to use Python 3
Posted by Zixing Liu 4 years, 5 months ago
Signed-off-by: Zixing Liu <liushuyu@aosc.io>
---
 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.24.0


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

Re: [libvirt] [PATCH Rust v2] api_tests.py: update to use Python 3
Posted by Andrea Bolognani 4 years, 5 months ago
On Tue, 2019-11-12 at 13:27 -0700, Zixing Liu wrote:
> Signed-off-by: Zixing Liu <liushuyu@aosc.io>
> ---
>  tools/api_tests.py | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

Looks good now!

  Reviewed-by: Andrea Bolognani <abologna@redhat.com>

and pushed. Congratulations on your first contribution to
libvirt-rust :)

-- 
Andrea Bolognani / Red Hat / Virtualization

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