[Python-checkins] cpython (merge 3.4 -> 3.5): Merge with 3.4

zach.ware python-checkins at python.org
Wed Jul 22 05:51:18 CEST 2015


https://hg.python.org/cpython/rev/c74a438c5698
changeset:   96987:c74a438c5698
branch:      3.5
parent:      96984:d7229f26dbdb
parent:      96986:256e71b48fbd
user:        Zachary Ware <zachary.ware at gmail.com>
date:        Tue Jul 21 22:50:43 2015 -0500
summary:
  Merge with 3.4

files:
  Doc/tools/rstlint.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/tools/rstlint.py b/Doc/tools/rstlint.py
--- a/Doc/tools/rstlint.py
+++ b/Doc/tools/rstlint.py
@@ -196,7 +196,7 @@
                 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))

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list