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 1/7] selftest/bpf: Fix trailing semicolon in the statement
Date
fix python PEP8 style issue

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

diff --git a/tools/testing/selftests/bpf/tcp_client.py b/tools/testing/selftests/bpf/tcp_client.py
index 7f8200a8702b..c3c44633c801 100755
--- a/tools/testing/selftests/bpf/tcp_client.py
+++ b/tools/testing/selftests/bpf/tcp_client.py
@@ -24,7 +24,7 @@ def send(sock, s):
try: n = sock.send(s)
except (socket.error) as e: n = 0
if n == 0:
- return count;
+ return count
count += n
return count

@@ -45,7 +45,7 @@ while n < 1000:
buf += b'+'
n += 1

-sock.settimeout(1);
+sock.settimeout(1)
n = send(sock, buf)
n = read(sock, 500)
sys.exit(0)
diff --git a/tools/testing/selftests/bpf/tcp_server.py b/tools/testing/selftests/bpf/tcp_server.py
index b39903fca4c8..183d07509a0a 100755
--- a/tools/testing/selftests/bpf/tcp_server.py
+++ b/tools/testing/selftests/bpf/tcp_server.py
@@ -24,7 +24,7 @@ def send(sock, s):
try: n = sock.send(s)
except (socket.error) as e: n = 0
if n == 0:
- return count;
+ return count
count += n
return count

@@ -72,7 +72,7 @@ while True:
address = str(address[0])
readList.append(clientSocket)
else:
- sock.settimeout(1);
+ sock.settimeout(1)
s = read(sock, 1000)
n = send(sock, buf)
sock.close()
--
2.19.2
\
 
 \ /
  Last update: 2018-12-11 12:56    [W:0.163 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site