Skip to content

Commit

Permalink
Fix base64 encoding images on Windows. Fixes adamzap#109
Browse files Browse the repository at this point in the history
  • Loading branch information
adamzap committed May 3, 2012
1 parent 7961600 commit f5dd864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/landslide/utils.py
Expand Up @@ -66,7 +66,7 @@ def encode_image_from_url(url, source_path):
return False

try:
image_contents = open(real_path).read()
image_contents = open(real_path, 'rb').read()
encoded_image = base64.b64encode(image_contents)
except IOError:
return False
Expand Down

0 comments on commit f5dd864

Please sign in to comment.