[Sugar-devel] [PATCH] Stopwatch: Replace cPickle by json
Gonzalo Odiard
gonzalo at laptop.org
Fri Jan 3 15:53:44 EST 2014
I plan include a patch managing backward compatibility
Gonzalo
On Fri, Jan 3, 2014 at 5:52 PM, Manuel Quiñones <manuq at laptop.org> wrote:
> Hey Ignacio,
>
> 2013/12/6 Ignacio Rodríguez <ignacio at sugarlabs.org>:
> > From: Ignacio Rodríguez <ignaciorodriguez at sugarlabs.org>
> >
> > ---
> > activity.py | 11 ++++++++---
> > 1 file changed, 8 insertions(+), 3 deletions(-)
> >
> > diff --git a/activity.py b/activity.py
> > index 6660fa7..7a88367 100644
> > --- a/activity.py
> > +++ b/activity.py
> > @@ -28,7 +28,11 @@ import stopwatch
> > import gobject
> > import dobject
> >
> > -import cPickle
> > +try:
> > + import json
> > +except ImportError:
> > + import simplejson as json
> > +
>
> cPickle and json give different formats, so this will be a backwards
> incompatible change. Are you aware of this?
>
> --
> .. manuq ..
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20140103/39d90327/attachment.html>
More information about the Sugar-devel
mailing list