Skip to content

Commit

Permalink
pystache/common.py: test failures in Windows due to CRs
Browse files Browse the repository at this point in the history
* cherry-picked from defunkt/pystache#193

Signed-off-by: Stephen L Arnold <[email protected]>
  • Loading branch information
sarnold committed Nov 9, 2020
1 parent fb40760 commit 782d0c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pystache/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 782d0c1

Please sign in to comment.