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:
parent
79973a263b
commit
d794d57fba
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user