diff options
author | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2022-04-18 02:32:06 +0100 |
---|---|---|
committer | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2022-04-22 04:21:12 +0100 |
commit | 55669f6cfc03e96cee236dc9b9cdeb1deb31cef0 (patch) | |
tree | 4578b4b0b93346e2356de779cf4c0c06f31e0668 /utils/doclinter.py | |
parent | c08bffde98391a193debbeaee9af8c4f5ef8c77f (diff) | |
download | sphinx-git-55669f6cfc03e96cee236dc9b9cdeb1deb31cef0.tar.gz |
Specify encoding
Diffstat (limited to 'utils/doclinter.py')
-rw-r--r-- | utils/doclinter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/doclinter.py b/utils/doclinter.py index 6ef8cbe10..d67a49b05 100644 --- a/utils/doclinter.py +++ b/utils/doclinter.py @@ -12,7 +12,7 @@ LEADING_SPACES = re.compile(r'^(\s*)') def lint(path: str) -> int: - with open(path) as f: + with open(path, encoding='utf-8') as f: document = f.readlines() errors = 0 |