python: remove not needed imports in various python scripts
authorStefan Schmidt <s.schmidt@samsung.com>
Thu, 21 Nov 2019 15:51:23 +0000 (16:51 +0100)
committerJongmin Lee <jm105.lee@samsung.com>
Sun, 22 Dec 2019 20:58:35 +0000 (05:58 +0900)
Should not be much harm but could help to have the minimum imports
needed when used in deployment.

Reported-By: https://lgtm.com/projects/g/Enlightenment/efl
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D10885

examples_checks.py
generate_widget_header.py
src/scripts/eina/eina-bench-cmp

index f456e6b..0129b40 100755 (executable)
@@ -1,6 +1,5 @@
 #!/usr/bin/python3
 import os
-import sys
 import subprocess
 import json
 import time
index d4a3234..c1de110 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/python3
 import sys
 import os
-from ete3 import Tree, TreeStyle, AttrFace, CircleFace, faces, NodeStyle
+from ete3 import Tree, TreeStyle, AttrFace, faces, NodeStyle
 import argparse
 
 parser = argparse.ArgumentParser(description='Create a image showing all widgets')
@@ -11,8 +11,6 @@ G = parser.parse_args()
 sys.path.insert(0, os.path.join(G.sourcedir, 'src', 'scripts', 'pyolian'))
 
 import eolian
-from eolian import Eolian_Type_Type
-from eolian import Eolian_Type_Builtin_Type
 
 SCAN_FOLDER = os.path.join(G.sourcedir, 'src', 'lib')
 
index 63926c2..9ff68e2 100755 (executable)
@@ -1,6 +1,5 @@
 #!/usr/bin/env python2
 
-import sys
 import os
 import os.path
 import csv