Skip to content

Commit

Permalink
Avoid setting encoding when reloading.
Browse files Browse the repository at this point in the history
  • Loading branch information
eskildsf committed Jan 4, 2025
1 parent 495e061 commit 458dfa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reloading/reloading.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def load_file(filename: str) -> str:
"""
src = ""
while True:
with open(filename, "r", encoding="utf-8") as f:
with open(filename, "r") as f:
if filename.endswith(".ipynb"):
import nbformat
# Read Jupyter Notebook v. 4
Expand Down

0 comments on commit 458dfa9

Please sign in to comment.