Skip to content

Commit

Permalink
fix to work with python3
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentperrinet committed Apr 27, 2015
1 parent abca1ce commit 56cbe34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moviepy/video/io/html_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def html_embed(clip, filetype=None, maxduration=60, rd_kwargs=None,
"but note that embedding large videos may take all the memory away !")

with open(filename, "rb") as f:
data= b64encode(f.read())
data= b64encode(f.read()).decode("utf-8")

template = templates[filetype]

Expand Down

0 comments on commit 56cbe34

Please sign in to comment.