From: Yu Watanabe Date: Mon, 20 May 2019 00:40:30 +0000 (+0900) Subject: test-network: use splitlines() at one more place X-Git-Tag: v243-rc1~388^2~25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=881b1f358f3750b6fed66f606ad410d09af0ac23;p=thirdparty%2Fsystemd.git test-network: use splitlines() at one more place --- diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 224726f9118..0a3ac1e56e6 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))