Skip to content

Commit

Permalink
linting corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
zsoltika committed Jun 11, 2024
1 parent e9c2dc9 commit de9b389
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions o2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def main():
"""
This is the business part.
"""
token = open('API.key', 'r').read().strip()
token = open('API.key', 'r', encoding='utf-8').read().strip()
logger.debug("API key found")

book = mkepub.Book(title='OmniVore saved articles')
Expand Down Expand Up @@ -81,10 +81,10 @@ def main():

oc.archive_article(aid)

with open('cover.jpg', 'rb') as file:
with open('cover.jpg', 'rb', encoding='utf-8') as file:
book.set_cover(file.read())

with open('base.css') as file:
with open('base.css', encoding='utf-8') as file:
book.set_stylesheet(file.read())


Expand Down

0 comments on commit de9b389

Please sign in to comment.