summaryrefslogtreecommitdiff
path: root/pyipmi
diff options
context:
space:
mode:
authorevasquez <eric.vasquez@calxeda.com>2013-12-02 16:48:03 -0600
committerevasquez <eric.vasquez@calxeda.com>2013-12-02 16:48:03 -0600
commit173ce540a102a57c816a8597782f57c26fe3bfd3 (patch)
tree1f736cf972bc96daae8bd93fbc2557dca2263a70 /pyipmi
parent05d1690c0ed69efec1e23115b12db9f006041253 (diff)
downloadpyipmi-173ce540a102a57c816a8597782f57c26fe3bfd3.tar.gz
nojira: Eclipse cleaned up some whitespace.
Signed-off-by: evasquez <eric.vasquez@calxeda.com>
Diffstat (limited to 'pyipmi')
-rw-r--r--pyipmi/commands/sel.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/pyipmi/commands/sel.py b/pyipmi/commands/sel.py
index 179fb8e..e526209 100644
--- a/pyipmi/commands/sel.py
+++ b/pyipmi/commands/sel.py
@@ -62,7 +62,7 @@ class SELTimeGetCommand(Command, ResponseParserMixIn):
"""Describes the Get SEL Time command"""
def response_parser(self, resp, err):
- """A helper function to parse a timestamp returned from
+ """A helper function to parse a timestamp returned from
an 'sel time get' command
"""
@@ -91,7 +91,7 @@ class SELInfoCommand(Command, ResponseParserMixIn):
response_fields = {
'Version' : {'parser': version_parser},
'Entries' : {'parser': lambda s: int(s)},
- 'Free Space' : {'parser': lambda s: int(s[:-6])}, #removes ' bytes'
+ 'Free Space' : {'parser': lambda s: int(s[:-6])}, # removes ' bytes'
'Last Add Time' : {'parser': lambda ts: SELTimestamp(ts)},
'Last Del Time' : {'parser': lambda ts: SELTimestamp(ts)},
'Overflow' : {'parser': str2bool},
@@ -118,7 +118,7 @@ class SELAllocInfoCommand(Command, ResponseParserMixIn):
class SELAddCommand(Command, ResponseParserMixIn):
"""Describes the sel add command"""
- #TODO: get response data from ipmitool
+ # TODO: get response data from ipmitool
name = "SEL Add"
@@ -185,9 +185,9 @@ class SELGetCommand(Command, ResponseParserMixIn):
'Timestamp': {},
'Generator ID': {'parser': hex_parser},
'EvM Revision': {'parser': hex_parser},
- 'Sensor Type': {}, #TODO: covert to hex code
+ 'Sensor Type': {}, # TODO: covert to hex code
'Sensor Number': {'parser': hex_parser},
- 'Event Type': {}, #TODO: convert to hex code
+ 'Event Type': {}, # TODO: convert to hex code
'Event Direction': {'parser': direction_parser},
'Event Data': {'parser': event_data_parser},
'Description': {}
@@ -210,7 +210,7 @@ class SELListCommand(Command, ResponseParserMixIn):
def response_parser(self, resp, err):
sel_list = resp.strip().split('\n')
sel_list = map(string.strip, sel_list)
- return filter(lambda s: s != '', sel_list) # remove blank entries
+ return filter(lambda s: s != '', sel_list) # remove blank entries
name = "List SEL"
ipmitool_args = ["sel", "list"]