Skip to content

Commit 782d0c1

Browse files
committed
pystache/common.py: test failures in Windows due to CRs
* cherry-picked from defunkt/pystache#193 Signed-off-by: Stephen L Arnold <[email protected]>
1 parent fb40760 commit 782d0c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pystache/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def read(path):
4545
# read() method returns byte strings (strings of type `str` in Python 2),
4646
# whereas in Python 3, the file object returns unicode strings (strings
4747
# of type `str` in Python 3).
48-
f = open(path, 'rb')
48+
f = open(path, 'rbU')
4949
# We avoid use of the with keyword for Python 2.4 support.
5050
try:
5151
return f.read()

0 commit comments

Comments
 (0)