From 782d0c11298dd24c51335bfea0a25b383e29b54f Mon Sep 17 00:00:00 2001 From: Stephen L Arnold Date: Sun, 8 Nov 2020 16:28:44 -0800 Subject: [PATCH] pystache/common.py: test failures in Windows due to CRs * cherry-picked from https://github.com/defunkt/pystache/pull/193 Signed-off-by: Stephen L Arnold --- pystache/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pystache/common.py b/pystache/common.py index fb266dd..c4f6d6e 100644 --- a/pystache/common.py +++ b/pystache/common.py @@ -45,7 +45,7 @@ def read(path): # read() method returns byte strings (strings of type `str` in Python 2), # whereas in Python 3, the file object returns unicode strings (strings # of type `str` in Python 3). - f = open(path, 'rb') + f = open(path, 'rbU') # We avoid use of the with keyword for Python 2.4 support. try: return f.read()