[PATCH 2/7] selftest/bpf: optimize import

From: Alice Ferrazzi
Date: Tue Dec 11 2018 - 06:55:42 EST


Fix PEP8 warnings

Signed-off-by: Alice Ferrazzi <alice.ferrazzi@xxxxxxxxx>
---
tools/testing/selftests/bpf/tcp_client.py | 7 +++----
tools/testing/selftests/bpf/tcp_server.py | 7 ++++---
2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/tools/testing/selftests/bpf/tcp_client.py b/tools/testing/selftests/bpf/tcp_client.py
index c3c44633c801..ad3de27cd605 100755
--- a/tools/testing/selftests/bpf/tcp_client.py
+++ b/tools/testing/selftests/bpf/tcp_client.py
@@ -3,10 +3,9 @@
# SPDX-License-Identifier: GPL-2.0
#

-import sys, os, os.path, getopt
-import socket, time
-import subprocess
-import select
+import socket
+import sys
+

def read(sock, n):
buf = b''
diff --git a/tools/testing/selftests/bpf/tcp_server.py b/tools/testing/selftests/bpf/tcp_server.py
index 183d07509a0a..f7491517cc49 100755
--- a/tools/testing/selftests/bpf/tcp_server.py
+++ b/tools/testing/selftests/bpf/tcp_server.py
@@ -3,10 +3,11 @@
# SPDX-License-Identifier: GPL-2.0
#

-import sys, os, os.path, getopt
-import socket, time
-import subprocess
+import socket
+import os.path
import select
+import sys
+

def read(sock, n):
buf = b''
--
2.19.2