mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 10:39:53 +00:00
Update shebang of Python3-compatible plugins to Python3
This commit is contained in:
parent
5301b7f5d5
commit
4a6d44a42c
7 changed files with 9 additions and 19 deletions
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
"""
|
"""
|
||||||
=head1 NAME
|
=head1 NAME
|
||||||
|
@ -42,20 +42,13 @@ GPLv2
|
||||||
=cut
|
=cut
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import json
|
import json
|
||||||
import codecs
|
import codecs
|
||||||
|
|
||||||
try:
|
from urllib.request import urlopen
|
||||||
# python3
|
from urllib.request import Request
|
||||||
from urllib.request import urlopen
|
|
||||||
from urllib.request import Request
|
|
||||||
except ImportError:
|
|
||||||
# python2
|
|
||||||
from urllib2 import urlopen
|
|
||||||
from urllib2 import Request
|
|
||||||
|
|
||||||
command = ''
|
command = ''
|
||||||
if len(sys.argv) > 1:
|
if len(sys.argv) > 1:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
# -*- encoding: UTF-8 -*-
|
|
||||||
#
|
#
|
||||||
# ksm
|
# ksm
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
# vim: set fileencoding=utf-8
|
|
||||||
#
|
#
|
||||||
# Munin plugin for Percona XtraDB Cluster. Monitors values of these cluster replication variables:
|
# Munin plugin for Percona XtraDB Cluster. Monitors values of these cluster replication variables:
|
||||||
# percona_queues: wsrep_local_recv_queue, wsrep_local_send_queue
|
# percona_queues: wsrep_local_recv_queue, wsrep_local_send_queue
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
"""
|
"""
|
||||||
=head1 NAME
|
=head1 NAME
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
# -*- encoding: iso-8859-1 -*-
|
# -*- encoding: iso-8859-1 -*-
|
||||||
#
|
#
|
||||||
# apt_ubuntu
|
# apt_ubuntu
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue