--- pyghmi/pyghmi/ipmi/oem/lenovo/energy.py 2020-03-25 12:28:56.840767989 +0300 +++ pyghmi/pyghmi/ipmi/oem/lenovo/energy.py 2020-03-25 12:29:39.569242159 +0300 @@ -30,9 +30,9 @@ data=self.iana + b'\x00\x00\x01') except pygexc.IpmiException as ie: if ie.ipmicode == 193: # try again with IBM IANA - self.iana = bytearray('\x4d\x4f\x00') + self.iana = bytearray(b'\x4d\x4f\x00') rsp = ipmicmd.xraw_command(netfn=0x2e, command=0x82, - data=self.iana + '\x00\x00\x01') + data=self.iana + b'\x00\x00\x01') else: raise if rsp['data'][4:6] not in (b'\x02\x01', b'\x02\x06', b'\x02\x09'):
--- pyghmi/ pyghmi/ ipmi/oem/ lenovo/ energy. py 2020-03-25 12:28:56.840767989 +0300 pyghmi/ ipmi/oem/ lenovo/ energy. py 2020-03-25 12:29:39.569242159 +0300
data= self.iana + b'\x00\x00\x01') IpmiException as ie: '\x4d\x4f\ x00') b'\x4d\ x4f\x00' )
rsp = ipmicmd. xraw_command( netfn=0x2e, command=0x82,
raise
+++ pyghmi/
@@ -30,9 +30,9 @@
except pygexc.
if ie.ipmicode == 193: # try again with IBM IANA
- self.iana = bytearray(
+ self.iana = bytearray(
- data=self.iana + '\x00\x00\x01')
+ data=self.iana + b'\x00\x00\x01')
else:
if rsp['data'][4:6] not in (b'\x02\x01', b'\x02\x06', b'\x02\x09'):