Skip to content

Commit ddb0ab3

Browse files
committed
Tiny fix.
1 parent 4852585 commit ddb0ab3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imdb.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def _read_text_file(path):
5454
It is returned as a single string where all lines are concatenated.
5555
"""
5656

57-
with open(path, 'rt') as file:
57+
with open(path, 'rt', encoding='utf-8') as file:
5858
# Read a list of strings.
5959
lines = file.readlines()
6060

0 commit comments

Comments
 (0)