Commit ecdafa9c authored by Samuel GAIST's avatar Samuel GAIST

[bcp][worker] Use simplejson

No need for version detection in this case
parent 39f38a4b
......@@ -62,9 +62,9 @@ Options:
import os
import sys
import json
import signal
import tempfile
import simplejson as json
import zmq
......@@ -192,8 +192,6 @@ def run(
if command == BCP.BCPE_EXECUTE:
job_id = request.pop(0)
job_data = request.pop(0)
if sys.version_info < (3, 6):
job_data = job_data.decode("utf-8")
data = json.loads(job_data)
reply = [BCP.BCPP_JOB_RECEIVED, job_id]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment