We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb40760 commit 782d0c1Copy full SHA for 782d0c1
pystache/common.py
@@ -45,7 +45,7 @@ def read(path):
45
# read() method returns byte strings (strings of type `str` in Python 2),
46
# whereas in Python 3, the file object returns unicode strings (strings
47
# of type `str` in Python 3).
48
- f = open(path, 'rb')
+ f = open(path, 'rbU')
49
# We avoid use of the with keyword for Python 2.4 support.
50
try:
51
return f.read()
0 commit comments