Re: [libvirt] [python PATCH] Drop support for python 2

2019-12-04 Thread Michal Privoznik

On 12/4/19 11:41 AM, Daniel P. Berrangé wrote:

Signed-off-by: Daniel P. Berrangé 
---
  examples/consolecallback.py   |   2 +-
  examples/dhcpleases.py|   2 +-
  examples/dominfo.py   |   2 +-
  examples/domipaddrs.py|   2 +-
  examples/domrestore.py|   2 +-
  examples/domsave.py   |   2 +-
  examples/domstart.py  |   2 +-
  examples/esxlist.py   |   2 +-
  examples/event-test.py|   2 +-
  examples/guest-vcpus/guest-vcpu-daemon.py |   2 +-
  examples/guest-vcpus/guest-vcpu.py|   2 +-
  examples/nodestats.py |   2 +-
  examples/sparsestream.py  |   2 +-
  examples/topology.py  |   2 +-
  generator.py  |   2 +-
  libvirt-lxc-override.c|  51 ++---
  libvirt-override.c|  51 ++---
  libvirt-python.spec.in|  96 +---
  libvirt-qemu-override.c   |  51 ++---
  libvirt-utils.c   |  17 +--
  libvirt-utils.h   |   6 +-
  sanitytest.py |   2 +-
  setup.py  |   9 +-
  typewrappers.c| 133 +++---
  typewrappers.h|   5 -
  25 files changed, 71 insertions(+), 380 deletions(-)


Reviewed-by: Michal Privoznik 

Michal

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

[libvirt] [python PATCH] Drop support for python 2

2019-12-04 Thread Daniel P . Berrangé
Signed-off-by: Daniel P. Berrangé 
---
 examples/consolecallback.py   |   2 +-
 examples/dhcpleases.py|   2 +-
 examples/dominfo.py   |   2 +-
 examples/domipaddrs.py|   2 +-
 examples/domrestore.py|   2 +-
 examples/domsave.py   |   2 +-
 examples/domstart.py  |   2 +-
 examples/esxlist.py   |   2 +-
 examples/event-test.py|   2 +-
 examples/guest-vcpus/guest-vcpu-daemon.py |   2 +-
 examples/guest-vcpus/guest-vcpu.py|   2 +-
 examples/nodestats.py |   2 +-
 examples/sparsestream.py  |   2 +-
 examples/topology.py  |   2 +-
 generator.py  |   2 +-
 libvirt-lxc-override.c|  51 ++---
 libvirt-override.c|  51 ++---
 libvirt-python.spec.in|  96 +---
 libvirt-qemu-override.c   |  51 ++---
 libvirt-utils.c   |  17 +--
 libvirt-utils.h   |   6 +-
 sanitytest.py |   2 +-
 setup.py  |   9 +-
 typewrappers.c| 133 +++---
 typewrappers.h|   5 -
 25 files changed, 71 insertions(+), 380 deletions(-)

diff --git a/examples/consolecallback.py b/examples/consolecallback.py
index c539a92..1347384 100644
--- a/examples/consolecallback.py
+++ b/examples/consolecallback.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # consolecallback - provide a persistent console that survives guest reboots
 
 import sys, os, logging, libvirt, tty, termios, atexit
diff --git a/examples/dhcpleases.py b/examples/dhcpleases.py
index da51f52..f394541 100755
--- a/examples/dhcpleases.py
+++ b/examples/dhcpleases.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # netdhcpleases - print leases info for given virtual network
 
 import libvirt
diff --git a/examples/dominfo.py b/examples/dominfo.py
index d3049cd..0a39f4c 100755
--- a/examples/dominfo.py
+++ b/examples/dominfo.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # dominfo - print some information about a domain
 
 import libvirt
diff --git a/examples/domipaddrs.py b/examples/domipaddrs.py
index d6d5cac..bda308c 100755
--- a/examples/domipaddrs.py
+++ b/examples/domipaddrs.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # domipaddrs - print domain interfaces along with their MAC and IP addresses
 
 import libvirt
diff --git a/examples/domrestore.py b/examples/domrestore.py
index 06fdfbc..96f4955 100755
--- a/examples/domrestore.py
+++ b/examples/domrestore.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # domstart - make sure a given domU is running, if not start it
 
 import libvirt
diff --git a/examples/domsave.py b/examples/domsave.py
index 727217c..4940cce 100755
--- a/examples/domsave.py
+++ b/examples/domsave.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # domstart - make sure a given domU is running, if not start it
 
 import libvirt
diff --git a/examples/domstart.py b/examples/domstart.py
index ce1b60c..7ff6cb9 100755
--- a/examples/domstart.py
+++ b/examples/domstart.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # domstart - make sure a given domU is running, if not start it
 
 import libvirt
diff --git a/examples/esxlist.py b/examples/esxlist.py
index 0d47b00..d86e064 100755
--- a/examples/esxlist.py
+++ b/examples/esxlist.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # esxlist - list active domains of an ESX host and print some info.
 #   also demonstrates how to use the libvirt.openAuth() method
 
diff --git a/examples/event-test.py b/examples/event-test.py
index 4458e22..fddef64 100755
--- a/examples/event-test.py
+++ b/examples/event-test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 #
 #
diff --git a/examples/guest-vcpus/guest-vcpu-daemon.py 
b/examples/guest-vcpus/guest-vcpu-daemon.py
index c7c08a8..30fcb9c 100755
--- a/examples/guest-vcpus/guest-vcpu-daemon.py
+++ b/examples/guest-vcpus/guest-vcpu-daemon.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import libvirt
 import threading
diff --git a/examples/guest-vcpus/guest-vcpu.py 
b/examples/guest-vcpus/guest-vcpu.py
index 8faba87..479ec40 100755
--- a/examples/guest-vcpus/guest-vcpu.py
+++ b/examples/guest-vcpus/guest-vcpu.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import libvirt
 import sys
diff --git a/examples/nodestats.py b/examples/nodestats.py
index c01dead..ae2a442 100755
--- a/examples/nodestats.py
+++ b/examples/nodestats.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # Print some host NUMA node statistics
 #
 # Authors: