LeftyBC/icinga-light — pull request #2 by brycied00d (2013-01-07 19:08:14+00:00)
Title: pep8 violation cleanup

icinga.py:22:80: E501 line too long (80 characters)
f = open(os.path.join(os.path.dirname(os.path.abspath(__file__)),"config.yaml"))
^
icinga.py:22:65: E231 missing whitespace after ','
f = open(os.path.join(os.path.dirname(os.path.abspath(__file__)),"config.yaml"))
^
icinga.py:30:1: E302 expected 2 blank lines, found 1
def debug(msg):
^
icinga.py:37:1: E302 expected 2 blank lines, found 1
def set_light(color="off",count=1):
^
icinga.py:37:26: E231 missing whitespace after ','
def set_light(color="off",count=1):
^
icinga.py:40:21: E231 missing whitespace after ','
for k in range(1,count+1,2):
^
icinga.py:40:27: E225 missing whitespace around operator
for k in range(1,count+1,2):
^
icinga.py:41:80: E501 line too long (89 characters)
discarded = commands.getoutput('usblamp -d 1000 "'+current_color+'" "'+color+'"')
^
icinga.py:41:59: E225 missing whitespace around operator
discarded = commands.getoutput('usblamp -d 1000 "'+current_color+'" "'+color+'"')
^
icinga.py:48:80: E501 line too long (88 characters)
base64string = base64.encodestring('%s:%s' % (username, password)).replace('\n', '')
^
icinga.py:73:28: E231 missing whitespace after ','
set_light(color=red,count=services_critical_unack)
^
icinga.py:76:31: E231 missing whitespace after ','
set_light(color=orange,count=services_warning_unack)
^
icinga.py:79:29: E231 missing whitespace after ','
set_light(color=blue,count=hosts_down_unack)
^
icinga.py:82:31: E231 missing whitespace after ','
set_light(color=purple,count=services_unknown_unack)
^