summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2019-11-21 16:51:23 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2019-12-20 09:26:17 +0100
commit55389ccf25b1f37284cdcda39f9dc2b67d6ec878 (patch)
tree1df9a94d7d5e4be97c822a758bbfa3621fc04261
parent8146728c780914614ec49177edd5ea18030065e3 (diff)
python: remove not needed imports in various python scripts
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
-rwxr-xr-xexamples_checks.py1
-rwxr-xr-xgenerate_widget_header.py4
-rwxr-xr-xsrc/scripts/eina/eina-bench-cmp1
3 files changed, 1 insertions, 5 deletions
diff --git a/examples_checks.py b/examples_checks.py
index f456e6b..0129b40 100755
--- a/examples_checks.py
+++ b/examples_checks.py
@@ -1,6 +1,5 @@
1#!/usr/bin/python3 1#!/usr/bin/python3
2import os 2import os
3import sys
4import subprocess 3import subprocess
5import json 4import json
6import time 5import time
diff --git a/generate_widget_header.py b/generate_widget_header.py
index d4a3234..c1de110 100755
--- a/generate_widget_header.py
+++ b/generate_widget_header.py
@@ -1,7 +1,7 @@
1#!/usr/bin/python3 1#!/usr/bin/python3
2import sys 2import sys
3import os 3import os
4from ete3 import Tree, TreeStyle, AttrFace, CircleFace, faces, NodeStyle 4from ete3 import Tree, TreeStyle, AttrFace, faces, NodeStyle
5import argparse 5import argparse
6 6
7parser = argparse.ArgumentParser(description='Create a image showing all widgets') 7parser = argparse.ArgumentParser(description='Create a image showing all widgets')
@@ -11,8 +11,6 @@ G = parser.parse_args()
11sys.path.insert(0, os.path.join(G.sourcedir, 'src', 'scripts', 'pyolian')) 11sys.path.insert(0, os.path.join(G.sourcedir, 'src', 'scripts', 'pyolian'))
12 12
13import eolian 13import eolian
14from eolian import Eolian_Type_Type
15from eolian import Eolian_Type_Builtin_Type
16 14
17SCAN_FOLDER = os.path.join(G.sourcedir, 'src', 'lib') 15SCAN_FOLDER = os.path.join(G.sourcedir, 'src', 'lib')
18 16
diff --git a/src/scripts/eina/eina-bench-cmp b/src/scripts/eina/eina-bench-cmp
index 63926c2..9ff68e2 100755
--- a/src/scripts/eina/eina-bench-cmp
+++ b/src/scripts/eina/eina-bench-cmp
@@ -1,6 +1,5 @@
1#!/usr/bin/env python2 1#!/usr/bin/env python2
2 2
3import sys
4import os 3import os
5import os.path 4import os.path
6import csv 5import csv