← Back to team overview

openlp-core team mailing list archive

[Bug 954373] [NEW] use simplejson in web remote

 

Public bug reported:

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

** Affects: openlp
     Importance: Undecided
         Status: New

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


Follow ups

References