GTG

Use json instead of simplejson on python 2.6+

Bug #834971 reported by mrk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GTG
Fix Released
Low
Izidor Matušov

Bug Description

It's a feature request. It's a common practice to use bundled version of simplejson (python's 2.6+ json module) in case the app is running with python 2.6+ and implicitly require simplejson if python is <=2.5 . For example as this done in gpodder multimedia application:

 31 try:
 32 # For Python < 2.6, we use the "simplejson" add-on module
 33 # XXX: Mark as dependency
 34 import simplejson as json
 35 except ImportError:
 36 # Python 2.6 already ships with a nice "json" module
 37 import json

In the code they just use json methods and it works both with native python json module and external simplejson too. The same may be done for json import plugin and twitter/rtm backends.

Tags: feature json
Revision history for this message
Izidor Matušov (izidor) wrote :

> mrk, thank you for this suggestion. It is fixed in rev. 988.

Changed in gtg:
status: New → Fix Committed
importance: Undecided → Low
assignee: nobody → Izidor Matušov (izidor)
milestone: none → 0.2.9
Revision history for this message
mrk (cvs-src) wrote :

Thanks a lot!
This change probably should be noted in README, so the packagers and source tarball users can decide when they need simplejson dependency.

Izidor Matušov (izidor)
Changed in gtg:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.