lkml.org 
[lkml]   [2018]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/7] selftest/bpf: optimize import
Date
Fix PEP8 warnings

Signed-off-by: Alice Ferrazzi <alice.ferrazzi@gmail.com>
---
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
\
 
 \ /
  Last update: 2018-12-11 12:56    [W:0.121 / U:0.476 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site