summaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils.py b/utils.py
index be6ab78..7223303 100644
--- a/utils.py
+++ b/utils.py
@@ -102,9 +102,9 @@ def embed_image_blob(repo, dirname, fname):
mimetype = mimetypes.guess_type(fname)[0]
# Unfortunately, bottle seems to require utf-8 encoded data.
- # We have to refetch the blob with raw=True, because the utf-8 encoded
+ # We have to refetch the blob as raw data, because the utf-8 encoded
# version of the blob available in the bottle template discards binary data.
- raw_blob = repo.blob(dirname + fname, raw = True)
+ raw_blob = repo.blob(dirname + fname)
return '<img style="max-width:100%;" src="data:{0};base64,{1}" />'.format( \
mimetype, base64.b64encode(raw_blob.raw_content))