[Bugs] #3816 sugar UNSP: Remove simplejson dependency
Sugar Labs Bugs
bugtracker-noreply at sugarlabs.org
Mon Aug 20 04:58:02 EDT 2012
#3816: Remove simplejson dependency
------------------------------------------+---------------------------------
Reporter: erikos | Owner: erikos
Type: defect | Status: new
Priority: Unspecified by Maintainer | Milestone: 1.0
Component: sugar | Version: 0.97.x
Severity: Major | Keywords:
Distribution: Unspecified | Status_field: Assigned
------------------------------------------+---------------------------------
We should only use one json implementatin, see #3142.
{{{
[erikos at t61 ~]$ grep -inr simplejson sugar-build/source/
sugar-build/source/sugar/src/jarabe/journal/expandedentry.py:27:import
simplejson
sugar-build/source/sugar/src/jarabe/journal/expandedentry.py:297:
buddies = simplejson.loads(self._metadata['buddies']).values()
sugar-build/source/sugar/src/jarabe/journal/listmodel.py:19:import
simplejson
sugar-build/source/sugar/src/jarabe/journal/listmodel.py:178: buddies
= simplejson.loads(metadata['buddies']).values()
sugar-build/source/sugar/src/jarabe/journal/listmodel.py:179: except
simplejson.decoder.JSONDecodeError, exception:
sugar-
build/source/sugar/src/jarabe/journal/journalentrybundle.py:21:import
simplejson
sugar-build/source/sugar/src/jarabe/journal/journalentrybundle.py:79:
return simplejson.loads(json_data)
sugar-build/source/sugar/src/jarabe/journal/model.py:28:import simplejson
sugar-build/source/sugar/src/jarabe/journal/model.py:467: metadata =
simplejson.load(open(metadata_path))
sugar-build/source/sugar/src/jarabe/journal/model.py:727: metadata_json =
simplejson.dumps(metadata_copy)
sugar-build/source/sugar/src/jarabe/journal/volumestoolbar.py:29:import
simplejson
sugar-build/source/sugar/src/jarabe/journal/volumestoolbar.py:153:
os.write(fh, simplejson.dumps(metadata))
sugar-build/source/sugar/src/jarabe/model/invites.py:20:import simplejson
sugar-build/source/sugar/src/jarabe/model/invites.py:270: private_channel
= simplejson.dumps([connection_name,
sugar-build/source/sugar/src/jarabe/model/bundleregistry.py:24:import
simplejson
sugar-build/source/sugar/src/jarabe/model/bundleregistry.py:124:
favorites_data = simplejson.load(open(favorites_path))
sugar-build/source/sugar/src/jarabe/model/bundleregistry.py:352:
simplejson.dump(favorites_data, open(path, 'w'), indent=1)
sugar-build/source/sugar-fructose/write/speechtoolbar.py:18:import
simplejson
sugar-build/source/sugar-fructose/write/speechtoolbar.py:99:
speech_parameters = simplejson.load(f)
sugar-build/source/sugar-fructose/write/speechtoolbar.py:152:
simplejson.dump(speech_parameters, f)
sugar-build/source/sugar-fructose/terminal/terminal.py:21:import
simplejson
sugar-build/source/sugar-fructose/terminal/terminal.py:398: data =
simplejson.loads(text)
sugar-build/source/sugar-fructose/terminal/terminal.py:455:# text =
simplejson.dumps(data)
sugar-build/source/sugar-fructose/read/speechtoolbar.py:18:import
simplejson
sugar-build/source/sugar-fructose/read/speechtoolbar.py:97:
speech_parameters = simplejson.load(f)
sugar-build/source/sugar-fructose/read/speechtoolbar.py:126:
simplejson.dump(speech_parameters, f)
sugar-build/source/sugar-fructose/turtleart/TurtleArt/tautils.py:38:
import simplejson as json
sugar-build/source/sugar-fructose/turtleart/TurtleArt/tautils.py:39:
from simplejson import load as jload
sugar-build/source/sugar-fructose/turtleart/TurtleArt/tautils.py:40:
from simplejson import dump as jdump
}}}
--
Ticket URL: <http://bugs.sugarlabs.org/ticket/3816>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list