Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/soccr
diff options
context:
space:
mode:
authorAndrei Vagin <avagin@gmail.com>2019-09-07 15:46:22 +0300
committerAndrei Vagin <avagin@gmail.com>2019-09-07 15:59:56 +0300
commit5aa72e723707e2bd7e8ed9841c2ad392781d066d (patch)
tree96cd7247324c9f99a89eeeedb84c43c241059e26 /soccr
parent5ff4fcb753c566f1c40a1973e8c68a270c3b515b (diff)
py: Reformat everything into pep8 style
As discussed on the mailing list, current .py files formatting does not conform to the world standard, so we should better reformat it. For this the yapf tool is used. The command I used was yapf -i $(find -name *.py) Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
Diffstat (limited to 'soccr')
-rw-r--r--soccr/test/run.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/soccr/test/run.py b/soccr/test/run.py
index a25c29263..446584a71 100644
--- a/soccr/test/run.py
+++ b/soccr/test/run.py
@@ -13,17 +13,17 @@ sport = os.getenv("TCP_SPORT", "12345")
dport = os.getenv("TCP_DPORT", "54321")
print(sys.argv[1])
-args = [sys.argv[1],
- "--addr", src, "--port", sport, "--seq", "555",
- "--next",
- "--addr", dst, "--port", dport, "--seq", "666",
- "--reverse", "--", "./tcp-test.py"]
+args = [
+ sys.argv[1], "--addr", src, "--port", sport, "--seq", "555", "--next",
+ "--addr", dst, "--port", dport, "--seq", "666", "--reverse", "--",
+ "./tcp-test.py"
+]
-p1 = Popen(args + ["dst"], stdout = PIPE, stdin = PIPE)
+p1 = Popen(args + ["dst"], stdout=PIPE, stdin=PIPE)
-args.remove("--reverse");
+args.remove("--reverse")
-p2 = Popen(args + ["src"], stdout = PIPE, stdin = PIPE)
+p2 = Popen(args + ["src"], stdout=PIPE, stdin=PIPE)
p1.stdout.read(5)
p2.stdout.read(5)
@@ -42,7 +42,7 @@ str2 = m.hexdigest()
if str2 != eval(s):
print("FAIL", repr(str2), repr(s))
- sys.exit(5);
+ sys.exit(5)
s = p1.stdout.read()
m = hashlib.md5()
@@ -52,7 +52,7 @@ str1 = m.hexdigest()
s = p2.stdout.read()
if str1 != eval(s):
print("FAIL", repr(str1), s)
- sys.exit(5);
+ sys.exit(5)
if p1.wait():
sys.exit(1)