From 329e9fc188f6da5e51f77f47049d5f4ee073b5fe Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 15 May 2015 16:08:45 -0400 Subject: [PATCH] Fix python2.6 usage of unpack_from unpack_from in python 2.6 can't handle a bytearray. Make it a buffer before trying to unpack_from Change-Id: I0b1014eba7b1001e79edb2bee1e1dc5b59eda36c --- pyghmi/ipmi/events.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyghmi/ipmi/events.py b/pyghmi/ipmi/events.py index 0e91c920..912807a5 100644 --- a/pyghmi/ipmi/events.py +++ b/pyghmi/ipmi/events.py @@ -442,7 +442,8 @@ class EventHandler(object): event = {} if selentry[2] == 2 or (0xc0 <= selentry[2] <= 0xdf): # Either standard, or at least the timestamp is standard - event['timecode'] = struct.unpack_from('