← Back to team overview

openlp-core team mailing list archive

[Bug 954373] Re: use simplejson in web remote

 

Right, they are almost the same. On the pypi page is more:

"includes an optional C extension for a serious speed boost."

This C extension is not available in the python library and this C
extension is the benefit of simplejson.

-- 
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/954373

Title:
  use simplejson in web remote

Status in OpenLP - Worship Presentation Software:
  New

Bug description:
  Simplejson is  faster json implementation with the same api as the
  json module in standard python library.

  In the file ./openlp/plugins/remotes/lib/httpserver.py there is code
  like

  try:                                                                                                                                                                                                               
      import json                                                                                                                                                                                                    
  except ImportError:                                                                                                                                                                                                
      import simplejson as json

  It means use simplejson if json is not available. But json module is
  available since python 2.6 and our minimum version is python 2.6. We
  reverse the imports and firstly try simplejson if available and then
  json from standard python library:

  try:                                                                                                                                                                                                               
      import simplejson as json                                                                                                                                                                                       
  except ImportError:                                                                                                                                                                                                
      import json

To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/954373/+subscriptions


References