From 4aa30dc27535bed8ffd16d37f8794d0a06bb0148 Mon Sep 17 00:00:00 2001
From: Zachary Ware <zachary.ware@gmail.com>
Date: Tue, 21 Jul 2015 22:50:29 -0500
Subject: [PATCH] rstlint: explicitly open files as UTF8

---
 Doc/tools/rstlint.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Doc/tools/rstlint.py b/Doc/tools/rstlint.py
index be19ec8b37..7dccf72f99 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))
-- 
2.40.0