Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4aa30dc

Browse files
committed
rstlint: explicitly open files as UTF8
1 parent c75e2dd commit 4aa30dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/tools/rstlint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def main(argv):
196196
print('Checking %s...' % fn)
197197

198198
try:
199-
with open(fn, 'r') as f:
199+
with open(fn, 'r', encoding='utf-8') as f:
200200
lines = list(f)
201201
except (IOError, OSError) as err:
202202
print('%s: cannot open: %s' % (fn, err))

0 commit comments

Comments
 (0)