From 7cf1e800148cab09fe8a0877c52c15fb3d858cd7 Mon Sep 17 00:00:00 2001
From: Samuel Gaist <samuel.gaist@idiap.ch>
Date: Fri, 15 Mar 2019 10:17:17 +0100
Subject: [PATCH] [dataformat] Code cleanup

---
 beat/core/dataformat.py | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/beat/core/dataformat.py b/beat/core/dataformat.py
index 154489f6..8e79c88a 100644
--- a/beat/core/dataformat.py
+++ b/beat/core/dataformat.py
@@ -45,16 +45,12 @@ Forward importing from :py:mod:`beat.backend.python.dataformat`:
 :py:class:`beat.backend.python.dataformat.Storage`
 """
 
-import os
 import copy
-
 import six
-import simplejson
 
 from . import schema
 from . import prototypes
 from . import utils
-from .baseformat import baseformat
 
 from beat.backend.python.dataformat import Storage  # noqa
 from beat.backend.python.dataformat import DataFormat as BackendDataFormat
@@ -132,7 +128,7 @@ class DataFormat(BackendDataFormat):
         if data is None:  # loads prototype and validates it
 
             self.data, self.errors = prototypes.load("dataformat")
-            assert not self.errors, "\n  * %s" % "\n  *".join(self.errors)
+            assert not self.errors, "\n  * %s" % "\n  *".join(self.errors)  # nosec
 
         else:
 
-- 
GitLab