Commit f921ce93 authored by Zachary Ware's avatar Zachary Ware

rstlint: explicitly open files as UTF8

parent f0b52f4d
......@@ -196,7 +196,7 @@ Options: -v verbose (print all checked file names)
print('Checking %s...' % fn)
try:
with open(fn, 'r') as f:
with open(fn, 'r', encoding='utf-8') as f:
lines = list(f)
except (IOError, OSError) as err:
print('%s: cannot open: %s' % (fn, err))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment