[libvirt] [jenkins-ci PATCH] lcitool: don't use SafeConfigParser under Python3
Andrea Bolognani
abologna at redhat.com
Fri May 3 13:39:08 UTC 2019
On Fri, 2019-05-03 at 11:02 +0100, Daniel P. Berrangé wrote:
> Since Python 3.2 the SafeConfigParser class is renamed to
> just ConfigParser. The SafeConfigParser alias is targetted
> for deletion.
>
> ./lcitool:224: DeprecationWarning: The SafeConfigParser class
> has been renamed to ConfigParser in Python 3.2. This alias
> will be removed in future versions. Use ConfigParser directly
> instead.
>
> This switches to use ConfigParser all the time on Py3. Technically
> this is wrong on 3.0 and 3.1, but in reality no one will still be
> using those, only more modern 3.x versions, or the legacy 2.7.
>
> Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
> ---
> guests/lcitool | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Reviewed-by: Andrea Bolognani <abologna at redhat.com>
--
Andrea Bolognani / Red Hat / Virtualization
More information about the libvir-list
mailing list