From 6b4a3124c7ae2f7941eace58d4403f522ad69820 Mon Sep 17 00:00:00 2001 From: Bianco Veigel Date: Fri, 11 Sep 2020 13:15:43 +0200 Subject: [PATCH] switch to python3 --- plugins/libvirt/kvm_mem | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/libvirt/kvm_mem b/plugins/libvirt/kvm_mem index fb63f784..2ada1da1 100755 --- a/plugins/libvirt/kvm_mem +++ b/plugins/libvirt/kvm_mem @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # -*- coding: utf-8 -*- # vim: set fileencoding=utf-8 # @@ -92,7 +92,7 @@ def list_pids(): ''' Find the pid of kvm processes @return a list of pids from running kvm ''' - pid = Popen("pidof qemu-kvm qemu-system-x86_64 kvm", shell=True, stdout=PIPE) + pid = Popen("pidof qemu-kvm qemu-system-x86_64 kvm", shell=True, stdout=PIPE, text=True) return pid.communicate()[0].split() if __name__ == "__main__":