aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2020-03-23 16:06:14 +0100
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2020-03-23 16:06:14 +0100
commitb8c5101a920275687fdab980048cb4dae5aa902d (patch)
tree00ed89ab3fe8d77085e3d8d24647f289863cb9fe
parent00107ed0ee9911ac761a544bada794a1ebb26ddf (diff)
Removing unused imports in python scripts
Removing according to pylint report. Change-Id: I2296b923a71c53347afcd0eb11d1c07b1400570f Issue-ID: INT-1482 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
-rwxr-xr-xtutorials/vFWDT/workflow/workflow.py5
-rwxr-xr-xvnfs/DAaaS/microservices/PythonApps/python-kafkaConsumer-inference-app/src/main.py3
-rwxr-xr-xvnfs/DAaaS/sample-apps/sample-minio-save-model/build/save-model-to-minio.py2
-rw-r--r--vnfs/DAaaS/sample-apps/training/sample-horovod-app/keras_mnist_advanced_modified.py5
-rw-r--r--vnfs/VES5.0/evel/evel-test-collector/code/collector/test_control.py1
5 files changed, 0 insertions, 16 deletions
diff --git a/tutorials/vFWDT/workflow/workflow.py b/tutorials/vFWDT/workflow/workflow.py
index cbeac413..60545695 100755
--- a/tutorials/vFWDT/workflow/workflow.py
+++ b/tutorials/vFWDT/workflow/workflow.py
@@ -20,27 +20,22 @@
'''
import os
-import ssl
import json
import sys
import uuid
import time
import copy
-import netifaces as ni
import warnings
import contextlib
import requests
import simplejson
import http.server
import threading
-import urllib3
from datetime import datetime
from datetime import timedelta
from simple_rest_client.api import API
from simple_rest_client.resource import Resource
from basicauth import encode
-from pprint import pprint
-from random import randint
from urllib3.exceptions import InsecureRequestWarning
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