From b8c5101a920275687fdab980048cb4dae5aa902d Mon Sep 17 00:00:00 2001 From: Bartek Grzybowski Date: Mon, 23 Mar 2020 16:06:14 +0100 Subject: Removing unused imports in python scripts Removing according to pylint report. Change-Id: I2296b923a71c53347afcd0eb11d1c07b1400570f Issue-ID: INT-1482 Signed-off-by: Bartek Grzybowski --- .../PythonApps/python-kafkaConsumer-inference-app/src/main.py | 3 --- .../sample-apps/sample-minio-save-model/build/save-model-to-minio.py | 2 -- .../training/sample-horovod-app/keras_mnist_advanced_modified.py | 5 ----- vnfs/VES5.0/evel/evel-test-collector/code/collector/test_control.py | 1 - 4 files changed, 11 deletions(-) (limited to 'vnfs') diff --git a/vnfs/DAaaS/microservices/PythonApps/python-kafkaConsumer-inference-app/src/main.py b/vnfs/DAaaS/microservices/PythonApps/python-kafkaConsumer-inference-app/src/main.py index 8d013b40..2fbe0515 100755 --- a/vnfs/DAaaS/microservices/PythonApps/python-kafkaConsumer-inference-app/src/main.py +++ b/vnfs/DAaaS/microservices/PythonApps/python-kafkaConsumer-inference-app/src/main.py @@ -3,9 +3,6 @@ # from .consumer.CustomKafkaConsumer import CustomKafkaConsumer # from .producer.CustomKafkaProducer import CustomKafkaProducer -import sys -import os, threading -import traceback import json import concurrent.futures import logging diff --git a/vnfs/DAaaS/sample-apps/sample-minio-save-model/build/save-model-to-minio.py b/vnfs/DAaaS/sample-apps/sample-minio-save-model/build/save-model-to-minio.py index 1963cd3d..c5198471 100755 --- a/vnfs/DAaaS/sample-apps/sample-minio-save-model/build/save-model-to-minio.py +++ b/vnfs/DAaaS/sample-apps/sample-minio-save-model/build/save-model-to-minio.py @@ -22,9 +22,7 @@ # python imports -import json import os -import time from minio import Minio from minio.error import ResponseError diff --git a/vnfs/DAaaS/sample-apps/training/sample-horovod-app/keras_mnist_advanced_modified.py b/vnfs/DAaaS/sample-apps/training/sample-horovod-app/keras_mnist_advanced_modified.py index fa39cb6a..7cfa7045 100644 --- a/vnfs/DAaaS/sample-apps/training/sample-horovod-app/keras_mnist_advanced_modified.py +++ b/vnfs/DAaaS/sample-apps/training/sample-horovod-app/keras_mnist_advanced_modified.py @@ -1,5 +1,4 @@ from __future__ import print_function -import keras import os from tensorflow.keras.datasets import mnist from tensorflow.keras.models import Sequential @@ -7,10 +6,6 @@ from tensorflow.keras.layers import Dense, Dropout, Flatten from tensorflow.keras.layers import Conv2D, MaxPooling2D from tensorflow.keras.preprocessing.image import ImageDataGenerator from tensorflow.keras import backend as K -from tensorflow_estimator.python.estimator.export import export as export_helpers -from tensorflow.python.saved_model import builder as saved_model_builder -from tensorflow.python.saved_model import tag_constants, signature_constants -from tensorflow.python.saved_model.signature_def_utils_impl import predict_signature_def import tensorflow as tf import horovod.tensorflow.keras as hvd diff --git a/vnfs/VES5.0/evel/evel-test-collector/code/collector/test_control.py b/vnfs/VES5.0/evel/evel-test-collector/code/collector/test_control.py index 8783d30e..72f53fb2 100644 --- a/vnfs/VES5.0/evel/evel-test-collector/code/collector/test_control.py +++ b/vnfs/VES5.0/evel/evel-test-collector/code/collector/test_control.py @@ -25,7 +25,6 @@ License ''' import optparse import requests -import json ############################################################################### # Functions to build up commandList contents -- cgit 1.2.3-korg