From 881b1f358f3750b6fed66f606ad410d09af0ac23 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 20 May 2019 09:40:30 +0900 Subject: [PATCH] test-network: use splitlines() at one more place --- test/test-network/systemd-networkd-tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 224726f..0a3ac1e 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -186,7 +186,7 @@ class Utilities(): contents = in_file.read() if show_all: print(contents) - for line in contents.split('\n'): + for line in contents.splitlines(): if words in line: in_file.close() print("%s, %s" % (words, line)) -- 2.7.4