[Sugar-devel] [PATCH 3/7] metadatastore: store/change files on disk defensively #2317
Manuel Kaufmann
humitos at gmail.com
Sun Sep 30 14:10:14 EDT 2012
Hi,
I reviewed this patch and it seems to be OK for me.
The only thing that I do not understand well is this comment /
section. Can you explain to me this a bit more? Thanks
On Fri, Sep 21, 2012 at 12:55 AM, Martin Langhoff <martin at laptop.org> wrote:
> + # FIXME: this codepath handles raw image data
> + # str() is 8-bit clean right now, but
> + # this won't last. We will need more explicit
> + # handling of strings, int/floats vs raw data
> + if isinstance(value, unicode):
> + value = value.encode('utf-8')
> + elif not isinstance(value, basestring):
> + value = str(value)
--
Kaufmann Manuel
Blog: http://humitos.wordpress.com/
Porfolio: http://fotos.mkaufmann.com.ar/
PyAr: http://www.python.com.ar/
More information about the Sugar-devel
mailing list