Skip to content

Commit 8613545

Browse files
committed
fix broken test in python 3
1 parent 6db7999 commit 8613545

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ You got to wrap the binary content with stream to get html working:
213213
>>> # In reality, you might deal with html file upload
214214
>>> # where you will read from requests.FILES['YOUR_HTML_FILE']
215215
>>> htmlfile = "your_file.html"
216-
>>> with open(htmlfile, "rb") as f:
216+
>>> with open(htmlfile, "r") as f:
217217
... content = f.read()
218218
... r = pe.get_book(file_type="html", file_content=content)
219219
... print(r)

0 commit comments

Comments
 (0)