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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy