1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

switch to python3

This commit is contained in:
Bianco Veigel 2020-09-11 13:15:43 +02:00
parent 2385a6f570
commit 6b4a3124c7

View file

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# vim: set fileencoding=utf-8 # vim: set fileencoding=utf-8
# #
@ -92,7 +92,7 @@ def list_pids():
''' Find the pid of kvm processes ''' Find the pid of kvm processes
@return a list of pids from running kvm @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() return pid.communicate()[0].split()
if __name__ == "__main__": if __name__ == "__main__":