diff --git a/SAS/TMSS/client/lib/tmss_http_rest_client.py b/SAS/TMSS/client/lib/tmss_http_rest_client.py index 491b8055790fe096cca9c2c2374cd9f3026883ba..b27e93dcf9a9cda75ee03616aaa6bb40a2985bb1 100644 --- a/SAS/TMSS/client/lib/tmss_http_rest_client.py +++ b/SAS/TMSS/client/lib/tmss_http_rest_client.py @@ -11,7 +11,11 @@ urllib3.disable_warnings() import requests from http.client import responses import os -import json +try: + # try to use the fast ujson module, else plain json + import ujson as json +except ImportError: + import json from datetime import datetime, timedelta import html from urllib.parse import quote @@ -785,4 +789,3 @@ class TMSSsession(object): Returns the created scheduling_unit_draft/blueprint upon success, or raises. Use the method get_trigger_specification_doc_for_scheduling_unit_observing_strategy_template to get a valid trigger json doc, edit it, and sumbit using this method.""" return self.post_to_path_and_get_result_as_json_object('/submit_trigger', json_data=trigger_doc, retry_count=retry_count) -