diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2015-07-22 03:50:54 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2015-07-22 03:50:54 (GMT) |
commit | cafc34fa3d511e87056b532d7ba01961c5476152 (patch) | |
tree | 5a3aa5ac0e6ff316e8394a3f626b03971d4dd563 /Doc/tools | |
parent | 97efb8939cb256ba42160010add1a642436905b4 (diff) | |
parent | d7841ef48b48a361d22cc1795eff5d826eef20fa (diff) | |
download | cpython-cafc34fa3d511e87056b532d7ba01961c5476152.zip cpython-cafc34fa3d511e87056b532d7ba01961c5476152.tar.gz cpython-cafc34fa3d511e87056b532d7ba01961c5476152.tar.bz2 |
Merge with 3.5
Diffstat (limited to 'Doc/tools')
-rwxr-xr-x | Doc/tools/rstlint.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tools/rstlint.py b/Doc/tools/rstlint.py index be19ec8..7dccf72 100755 --- a/Doc/tools/rstlint.py +++ b/Doc/tools/rstlint.py @@ -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)) |