[Yt-svn] commit/yt: MatthewTurk: MIssed this b64 encode for delivering file objects

Bitbucket commits-noreply at bitbucket.org
Thu Apr 28 04:40:15 PDT 2011


1 new changeset in yt:

http://bitbucket.org/yt_analysis/yt/changeset/4db668e73b35/
changeset:   r4220:4db668e73b35
branch:      yt
user:        MatthewTurk
date:        2011-04-28 13:40:05
summary:     MIssed this b64 encode for delivering file objects
affected #:  1 file (18 bytes)

--- a/yt/gui/reason/extdirect_repl.py	Wed Apr 27 20:24:49 2011 -0400
+++ b/yt/gui/reason/extdirect_repl.py	Thu Apr 28 07:40:05 2011 -0400
@@ -97,7 +97,7 @@
 
 def deliver_image(im):
     if hasattr(im, 'read'):
-        img_data = im.read()
+        img_data = base64.b64encode(im.read())
     elif isinstance(im, types.StringTypes) and \
          im.endswith(".png"):
         img_data = base64.b64encode(open(im).read())

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list