Skip to content

Commit 2e58716

Browse files
committed
explicit encoding
1 parent 8d5c687 commit 2e58716

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/profiling/sampling/gecko_collector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def flush(self):
8787
self.buffer.clear()
8888

8989
def iter_tokens(self):
90-
with open(self.path) as file:
90+
with open(self.path, encoding="utf-8") as file:
9191
for line in file:
9292
yield line.rstrip("\n")
9393

0 commit comments

Comments
 (0)