[Sugar-devel] [PATCH] Stopwatch: Replace cPickle by json

Manuel Quiñones manuq at laptop.org
Fri Jan 3 15:52:17 EST 2014


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 ..


More information about the Sugar-devel mailing list