1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51:03 +00:00

Plugin icecast2_all: fix code style issues reported by flake8

This commit is contained in:
Lars Kruse 2019-08-14 00:36:00 +02:00
parent ab3a583756
commit 8b24b64960
2 changed files with 23 additions and 18 deletions

View file

@ -1,5 +1,15 @@
#! /usr/bin/python
# -*- coding: iso-8859-1 -*-
"""
This plugin shows the statistics of every source currently connected to the Icecast2 server.
See the Icecast2_ plugin for specific mountpoint plugin.
"""
import sys
import urllib2
from xml.dom import minidom
# Hostname of Icecast server
# Just canonical name, no http:// nor ending /
@ -9,10 +19,6 @@ username = "admin"
password = ""
realm = "Icecast2 Server"
# This plugin shows the statistics of every source currently connected to the Icecast2 server. See the Icecast2_ plugin for specific mountpoint plugin.
import urllib2, os.path, time, sys
from xml.dom import minidom
def hent_XML():
auth_handler = urllib2.HTTPBasicAuthHandler()

View file

@ -157,7 +157,6 @@ plugins/http/wget_page
plugins/i2p/i2p_
plugins/icecast/icecast_
plugins/icecast/icecast2
plugins/icecast/icecast2_all
plugins/icecast/icecast2_stats_
plugins/imapproxy/imapproxy_multi
plugins/ip6/ip6_