Skip to content

Commit

Permalink
Improve formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Feb 2, 2021
1 parent 969e22a commit 9928a0a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/zc/sourcefactory/policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ def getTitle(self, value):

if md:
title = md.title
elif isinstance(value, bytes):
title = value.decode()
else:
title = value.decode() if isinstance(value,
bytes) else unicode(value)
title = unicode(value)
return title


Expand Down

0 comments on commit 9928a0a

Please sign in to comment.