Skip to content

Commit

Permalink
Use bytes type (not str) for determining log output conversion.
Browse files Browse the repository at this point in the history
  • Loading branch information
nehpetsde committed Jun 7, 2019
1 parent 13268d7 commit a4e234e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nfc/clf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,7 @@ def __str__(self):
if name.startswith('_'):
continue
value = self.__dict__[name]
if isinstance(value, (bytearray, str)):
if isinstance(value, (bytes, bytearray)):
value = binascii.hexlify(value).decode().upper()
attrs.append("{0}={1}".format(name, value))
return "{brty} {attrs}".format(brty=self.brty, attrs=' '.join(attrs))
Expand Down

0 comments on commit a4e234e

Please sign in to comment.