diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2015-07-22 03:50:43 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2015-07-22 03:50:43 (GMT) |
commit | d7841ef48b48a361d22cc1795eff5d826eef20fa (patch) | |
tree | 5064927b7f3bb2db408bd2bb15167ee421465877 /Doc/tools | |
parent | c8115b8ba56ad33085e4447fc17de9fa9a682c8b (diff) | |
parent | 4aa30dc27535bed8ffd16d37f8794d0a06bb0148 (diff) | |
download | cpython-d7841ef48b48a361d22cc1795eff5d826eef20fa.zip cpython-d7841ef48b48a361d22cc1795eff5d826eef20fa.tar.gz cpython-d7841ef48b48a361d22cc1795eff5d826eef20fa.tar.bz2 |
Merge with 3.4
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)) |