Skip to content

Commit

Permalink
Merge pull request #247 from mhils/patch-1
Browse files Browse the repository at this point in the history
fix `examples/simple.py` Windows compatibility
  • Loading branch information
willmcgugan authored Feb 1, 2022
2 parents cfefb36 + 1ef5b51 commit 4521ecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async def on_mount(self, event: events.Mount) -> None:
await self.view.dock(body, edge="right")

async def get_markdown(filename: str) -> None:
with open(filename, "rt") as fh:
with open(filename, "r", encoding="utf8") as fh:
readme = Markdown(fh.read(), hyperlinks=True)
await body.update(readme)

Expand Down

0 comments on commit 4521ecb

Please sign in to comment.