Closed Bug 637508 Opened 14 years ago Closed 14 years ago

graph_server_post.py and hgtool.py assume simplejson

Categories

(Release Engineering :: General, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dustin, Unassigned)

Details

(Whiteboard: [scripts][simple])

Both of these scripts have failed in my testing of bug 631851, because simplejson is not included in the virtualenv. We're running Python-2.6.5, so as far as I know there's no reason not to try using the built-in json and fall back to simplejson if that's not found. At any rate, I'll add simplejson to the virtualenv -- but it would be good to be able to remove this dependency.
this is the import "trick" I use to cover this case: try: import json except ImportError: import simplejson as json
(In reply to comment #1) > this is the import "trick" I use to cover this case: > > try: > import json > except ImportError: > import simplejson as json I'd rather do it the other way round and import simplejson, falling back to json if it's not available. python 2.6's json is a few orders of magnitude slower than simplejson.
Priority: -- → P3
Whiteboard: [scripts][simple]
This appears fixed, though the opposite order from comment 2.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.