Update shebang of Python3-compatible plugins to Python3

This commit is contained in:
Lars Kruse 2020-11-26 02:38:34 +01:00
parent 5301b7f5d5
commit 4a6d44a42c
7 changed files with 9 additions and 19 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
=head1 NAME
@ -42,20 +42,13 @@ GPLv2
=cut
"""
from __future__ import print_function
import sys
import json
import codecs
try:
# python3
from urllib.request import urlopen
from urllib.request import Request
except ImportError:
# python2
from urllib2 import urlopen
from urllib2 import Request
from urllib.request import urlopen
from urllib.request import Request
command = ''
if len(sys.argv) > 1:

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import re
import sys

View File

@ -1,5 +1,4 @@
#!/usr/bin/env python
# -*- encoding: UTF-8 -*-
#!/usr/bin/env python3
#
# ksm
#

View File

@ -1,6 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: set fileencoding=utf-8
#!/usr/bin/env python3
#
# Munin plugin for Percona XtraDB Cluster. Monitors values of these cluster replication variables:
# percona_queues: wsrep_local_recv_queue, wsrep_local_send_queue

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
=head1 NAME

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- encoding: iso-8859-1 -*-
#
# apt_ubuntu

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import os
import re