Skip to content

Commit c8fca0e

Browse files
committed
Open in binary mode for Python 3
1 parent 8554098 commit c8fca0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html5lib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Example usage::
88
99
import html5lib
10-
with open("my_document.html") as f:
10+
with open("my_document.html", "rb") as f:
1111
tree = html5lib.parse(f)
1212
1313
For convenience, this module re-exports the following names:

0 commit comments

Comments
 (0)