Remove unused imports in vcpe python scripts 81/102981/2
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>
Wed, 4 Mar 2020 13:01:02 +0000 (14:01 +0100)
committerMarco Platania <platania@research.att.com>
Wed, 4 Mar 2020 14:06:04 +0000 (14:06 +0000)
Unused imports are removed according to pylint report
or ignore rules are added where applicable.

Change-Id: I8c32b5c3f456f0444f8ec8980910d470b7238a7d
Issue-ID: INT-1427
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
test/vcpe/cleanvGMUX.py
test/vcpe/config_sdnc_so.py
test/vcpe/get_info.py
test/vcpe/healthcheck-k8s.py
test/vcpe/loop.py
test/vcpe/sdcutils.py
test/vcpe/tests/test_imports.py
test/vcpe/vcpe.py
test/vcpe/vcpe_custom_service.py

index f526953..93135fb 100755 (executable)
@@ -4,8 +4,6 @@ import sys
 import logging
 import requests
 import json
-from datetime import datetime
-import time
 
 gmux_ip = ''
 logging.basicConfig(level=logging.DEBUG, format='%(message)s')
index 9f9a2e0..eac7c59 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/env python
 
 import logging
-from vcpecommon import *
+from vcpecommon import * # pylint: disable=W0614
 import csar_parser
 
 
index 62e428a..71efd18 100755 (executable)
@@ -1,16 +1,8 @@
 #!/usr/bin/env python
 
-import time
 import logging
 import json
-import mysql.connector
-import ipaddress
-import re
-import sys
-import base64
-from vcpecommon import *
-import preload
-import vcpe_custom_service
+from vcpecommon import * # pylint: disable=W0614
 import argparse
 
 # Run the script with [-h|--help] to get usage info
index ae33e25..2d58cc9 100755 (executable)
@@ -2,7 +2,6 @@
 
 import argparse
 import json
-import logging
 from subprocess import Popen,PIPE,STDOUT,check_output,CalledProcessError
 import sys
 
index 43255c9..1636e39 100755 (executable)
@@ -2,14 +2,7 @@
 
 import time
 import logging
-import json
-import mysql.connector
-import ipaddress
-import re
-import sys
-import base64
-from vcpecommon import *
-import preload
+from vcpecommon import * # pylint: disable=W0614
 import commands
 import vcpe_custom_service
 import argparse
index a6f6a50..db0229d 100755 (executable)
@@ -1,10 +1,9 @@
 #!/usr/bin/env python
 
-import sys
 import logging
 import requests
 import json
-from vcpecommon import *
+from vcpecommon import * # pylint: disable=W0614
 
 
 class SdcUtils:
index fee8507..4587495 100644 (file)
@@ -1,6 +1,7 @@
 import sys
 sys.path.append('./')
 
+# pylint: disable=W0611
 import vcpecommon
 import config_sdnc_so
 import csar_parser
index b154078..fc853ae 100755 (executable)
@@ -4,7 +4,7 @@ import logging
 logging.basicConfig(level=logging.INFO, format='%(asctime)s %(levelname)s %(name)s.%(funcName)s(): %(message)s')
 
 import sys
-from vcpecommon import *
+from vcpecommon import * # pylint: disable=W0614
 import sdcutils
 import soutils
 from datetime import datetime
index b3a26d1..973cd27 100755 (executable)
@@ -2,8 +2,7 @@
 
 import os
 import requests
-import time
-from vcpecommon import *
+from vcpecommon import * # pylint: disable=W0614
 from datetime import datetime
 import soutils
 import logging