Open files as UTF-8

This commit is contained in:
Michał Sochoń
2018-03-26 12:00:48 +02:00
parent 16ff195820
commit 54c0f8c937
6 changed files with 10 additions and 8 deletions

View File

@ -58,7 +58,7 @@ def main(argv=None):
retv = 0
for filename in args.filenames:
contents = io.open(filename).read()
contents = io.open(filename, encoding='UTF-8').read()
retv |= check_docstring_first(contents, filename=filename)
return retv