Skip to content

Commit

Permalink
no need to use rb for normal open
Browse files Browse the repository at this point in the history
  • Loading branch information
willforde committed Nov 2, 2022
1 parent 8c74cea commit aca9e36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htmlement.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def parse(source, tag="", attrs=None, encoding=None):
"""
# Assume that source is a file pointer if no read methods is found
if not hasattr(source, "read"):
source = open(source, "rb", encoding=encoding)
source = open(source, "r", encoding=encoding)
close_source = True
else:
close_source = False
Expand Down

0 comments on commit aca9e36

Please sign in to comment.