Skip to content

Commit

Permalink
interfaces: rmcp: remove ord()
Browse files Browse the repository at this point in the history
Doesn't work with python 3.

Signed-off-by: Michael Walle <michael.walle@kontron.com>
  • Loading branch information
mwalle committed Oct 8, 2018
1 parent 5b50edd commit 158c6c2
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 @@ -142,9 +142,9 @@ def unpack(self, sdu):

def __str__(self):
if self.data:
return ' '.join('%02x' % ord(b) for b in self.data)
return ' '.join('%02x' % b for b in array('B', self.data))
if self.sdu:
return ' '.join('%02x' % ord(b) for b in self.sdu)
return ' '.join('%02x' % b for b in array('B', self.sdu))
return ''


Expand Down

0 comments on commit 158c6c2

Please sign in to comment.