summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2019-02-27 04:33:21 +0000
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2019-02-27 08:09:17 +0000
commit91067239c19e9cc7b0f583b481a487420c354cbf (patch)
tree6220f83b8d6ff958f34b23cf405ae0f4b20ae7f2
parent77d6d55e90938321a8d4160f58442d02a4d8adbd (diff)
pyflakes: Remove imports of unused modules
-rw-r--r--src/osmo_gsm_tester/osmo_ggsn.py2
-rw-r--r--src/osmo_gsm_tester/osmo_hlr.py3
-rw-r--r--src/osmo_gsm_tester/osmo_mgcpgw.py2
-rw-r--r--src/osmo_gsm_tester/osmo_mgw.py2
-rw-r--r--src/osmo_gsm_tester/osmo_sgsn.py2
-rw-r--r--src/osmo_gsm_tester/pcap_recorder.py5
-rw-r--r--src/osmo_gsm_tester/resource.py3
-rw-r--r--src/osmo_gsm_tester/template.py3
-rw-r--r--src/osmo_gsm_tester/util.py3
9 files changed, 7 insertions, 18 deletions
diff --git a/src/osmo_gsm_tester/osmo_ggsn.py b/src/osmo_gsm_tester/osmo_ggsn.py
index 2fdc792..0ece596 100644
--- a/src/osmo_gsm_tester/osmo_ggsn.py
+++ b/src/osmo_gsm_tester/osmo_ggsn.py
@@ -20,7 +20,7 @@
import os
import pprint
-from . import log, util, config, template, process, osmo_ctrl, pcap_recorder
+from . import log, util, config, template, process, pcap_recorder
class OsmoGgsn(log.Origin):
diff --git a/src/osmo_gsm_tester/osmo_hlr.py b/src/osmo_gsm_tester/osmo_hlr.py
index a4633e3..1c361dd 100644
--- a/src/osmo_gsm_tester/osmo_hlr.py
+++ b/src/osmo_gsm_tester/osmo_hlr.py
@@ -18,11 +18,10 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import os
-import re
import pprint
import sqlite3
-from . import log, util, config, template, process, osmo_ctrl, pcap_recorder
+from . import log, util, config, template, process, pcap_recorder
class OsmoHlr(log.Origin):
run_dir = None
diff --git a/src/osmo_gsm_tester/osmo_mgcpgw.py b/src/osmo_gsm_tester/osmo_mgcpgw.py
index 668e4ce..20bb689 100644
--- a/src/osmo_gsm_tester/osmo_mgcpgw.py
+++ b/src/osmo_gsm_tester/osmo_mgcpgw.py
@@ -20,7 +20,7 @@
import os
import pprint
-from . import log, util, config, template, process, osmo_ctrl, pcap_recorder
+from . import log, util, config, template, process, pcap_recorder
class OsmoMgcpgw(log.Origin):
diff --git a/src/osmo_gsm_tester/osmo_mgw.py b/src/osmo_gsm_tester/osmo_mgw.py
index 1d5596e..ca7bd51 100644
--- a/src/osmo_gsm_tester/osmo_mgw.py
+++ b/src/osmo_gsm_tester/osmo_mgw.py
@@ -20,7 +20,7 @@
import os
import pprint
-from . import log, util, config, template, process, osmo_ctrl, pcap_recorder
+from . import log, util, config, template, process, pcap_recorder
class OsmoMgw(log.Origin):
diff --git a/src/osmo_gsm_tester/osmo_sgsn.py b/src/osmo_gsm_tester/osmo_sgsn.py
index 07cf059..9ffaaed 100644
--- a/src/osmo_gsm_tester/osmo_sgsn.py
+++ b/src/osmo_gsm_tester/osmo_sgsn.py
@@ -20,7 +20,7 @@
import os
import pprint
-from . import log, util, config, template, process, osmo_ctrl, pcap_recorder
+from . import log, util, config, template, process, pcap_recorder
class OsmoSgsn(log.Origin):
diff --git a/src/osmo_gsm_tester/pcap_recorder.py b/src/osmo_gsm_tester/pcap_recorder.py
index 70833d0..e0f0098 100644
--- a/src/osmo_gsm_tester/pcap_recorder.py
+++ b/src/osmo_gsm_tester/pcap_recorder.py
@@ -18,11 +18,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import os
-import random
-import re
-import socket
-from . import log, util, config, template, process, osmo_ctrl
+from . import log, process
class PcapRecorder(log.Origin):
diff --git a/src/osmo_gsm_tester/resource.py b/src/osmo_gsm_tester/resource.py
index 4f48dc4..29f641e 100644
--- a/src/osmo_gsm_tester/resource.py
+++ b/src/osmo_gsm_tester/resource.py
@@ -18,7 +18,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import os
-import time
import copy
import atexit
import pprint
@@ -27,8 +26,6 @@ from . import log
from . import config
from . import util
from . import schema
-from . import modem
-from . import osmo_nitb
from . import bts_sysmo, bts_osmotrx, bts_osmovirtual, bts_octphy, bts_nanobts
from .util import is_dict, is_list
diff --git a/src/osmo_gsm_tester/template.py b/src/osmo_gsm_tester/template.py
index 0ddfc84..c890963 100644
--- a/src/osmo_gsm_tester/template.py
+++ b/src/osmo_gsm_tester/template.py
@@ -18,8 +18,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-import os, sys
-from mako.template import Template
+import os
from mako.lookup import TemplateLookup
from . import log
diff --git a/src/osmo_gsm_tester/util.py b/src/osmo_gsm_tester/util.py
index 27c71cf..930c86a 100644
--- a/src/osmo_gsm_tester/util.py
+++ b/src/osmo_gsm_tester/util.py
@@ -27,9 +27,6 @@ import shutil
import atexit
import threading
import importlib.util
-import fcntl
-import tty
-import readline
import subprocess
# This mirrors enum osmo_auth_algo in libosmocore/include/osmocom/crypt/auth.h