Skip to content

Commit 3916a69

Browse files
committed
Use UTF-8 instead of default codec when opening source files
1 parent e1e0ae4 commit 3916a69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wpiformat/wpiformat/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def proc_pipeline(name):
9090
print(" with " + type(subtask).__name__)
9191

9292
lines = ""
93-
with open(name, "r") as file:
93+
with open(name, "r", encoding="utf8") as file:
9494
try:
9595
lines = file.read()
9696
except UnicodeDecodeError:

0 commit comments

Comments
 (0)