Skip to content

Commit

Permalink
interfaces: rmcp: remove trailing whitespace
Browse files Browse the repository at this point in the history
Make the code more pythonic.

Signed-off-by: Michael Walle <michael.walle@kontron.com>
  • Loading branch information
mwalle committed Oct 8, 2018
1 parent 158c6c2 commit 170c162
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyipmi/interfaces/rmcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ def set_timeout(self, timeout):

def _send_ipmi_msg(self, data):
log().debug('IPMI TX: {:s}'.format(
''.join('%02x ' % b for b in array('B', data))))
' '.join('%02x' % b for b in array('B', data))))
ipmi = IpmiMsg(self._session)
tx_data = ipmi.pack(data)
self._send_rmcp_msg(tx_data, RMCP_CLASS_IPMI)
Expand All @@ -359,7 +359,7 @@ def _receive_ipmi_msg(self):
msg = IpmiMsg()
data = msg.unpack(pdu)
log().debug('IPMI RX: {:s}'.format(
''.join('%02x ' % b for b in array('B', data))))
' '.join('%02x' % b for b in array('B', data))))
return data

def _send_asf_msg(self, msg):
Expand Down

0 comments on commit 170c162

Please sign in to comment.