From b669095de1f72967eeb4572389eaf902e2fa26e2 Mon Sep 17 00:00:00 2001 From: Samuel Gaist <samuel.gaist@idiap.ch> Date: Wed, 20 Mar 2019 11:55:54 +0100 Subject: [PATCH] [toolchain] Import simplejson as json to make it easy to swap --- beat/core/toolchain.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beat/core/toolchain.py b/beat/core/toolchain.py index e9849611..e934ae2e 100644 --- a/beat/core/toolchain.py +++ b/beat/core/toolchain.py @@ -44,7 +44,7 @@ Validation for toolchains import collections -import simplejson +import simplejson as json from . import schema from . import prototypes @@ -716,7 +716,7 @@ class Toolchain(object): str: The JSON representation for this object """ - return simplejson.dumps(self.data, indent=indent, cls=utils.NumpyJSONEncoder) + return json.dumps(self.data, indent=indent, cls=utils.NumpyJSONEncoder) def __str__(self): -- GitLab