Skip to content

Commit aca9e36

Browse files
committed
no need to use rb for normal open
1 parent 8c74cea commit aca9e36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

htmlement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def parse(source, tag="", attrs=None, encoding=None):
127127
"""
128128
# Assume that source is a file pointer if no read methods is found
129129
if not hasattr(source, "read"):
130-
source = open(source, "rb", encoding=encoding)
130+
source = open(source, "r", encoding=encoding)
131131
close_source = True
132132
else:
133133
close_source = False

0 commit comments

Comments
 (0)