From 655189fdbc2530f9639f3ecbcfefda0dba8a9daa Mon Sep 17 00:00:00 2001 From: Samuel Gaist <samuel.gaist@idiap.ch> Date: Wed, 20 Mar 2019 11:55:13 +0100 Subject: [PATCH] [stats] Import simplejson as json to make it easy to swap --- beat/core/stats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beat/core/stats.py b/beat/core/stats.py index c32021e8..7987e616 100644 --- a/beat/core/stats.py +++ b/beat/core/stats.py @@ -50,7 +50,7 @@ Forward impored from :py:mod:`beat.backend.python.stats`: import os import copy -import simplejson +import simplejson as json from . import schema from . import prototypes @@ -224,7 +224,7 @@ class Statistics(object): dict: JSON representation """ - return simplejson.dumps(self._data, indent=indent) + return json.dumps(self._data, indent=indent) def as_dict(self): """Returns self as a dictionary""" -- GitLab