Refactoring codebase to remove .decode()

This commit is contained in:
Apoclyps
2019-07-24 07:43:05 +01:00
parent 44620b7b37
commit bd605e5832
6 changed files with 192 additions and 172 deletions

View File

@@ -29,4 +29,4 @@ class RecentComics(Feed):
# item_link is only needed if NewsItem has no get_absolute_url method.
def item_link(self, item: ComicBook) -> str:
return '/comic/read/{0}/0/'.format(urlsafe_base64_encode(item.selector.bytes).decode())
return '/comic/read/{0}/0/'.format(urlsafe_base64_encode(item.selector.bytes))