mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +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
|
||||
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue