2
0
mirror of https://opendev.org/x/pyghmi synced 2025-03-19 01:47:41 +00:00

Fix mistake in python3-ification

Change-Id: Ia2a4feb16c8b9c0fa4206d72c08e1b5f8841021d
This commit is contained in:
Jarrod Johnson 2019-10-04 16:55:49 -04:00
parent 79973a263b
commit d794d57fba

View File

@ -133,7 +133,7 @@ class IMMClient(object):
@staticmethod
def _parse_builddate(strval):
if not isinstance(strval, ,str):
if not isinstance(strval, str) and isinstance(strval, bytes):
strval = strval.decode('utf-8')
try:
return datetime.strptime(strval, '%Y/%m/%d %H:%M:%S')