summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-05-20 09:40:30 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-05-22 17:58:46 +0900
commit881b1f358f3750b6fed66f606ad410d09af0ac23 (patch)
tree27ddd17dbd27f099edad6534d5a01c6a60ec8728 /test
parentb2774a3ae692113e1f47a336a6c09bac9cfb49ad (diff)
downloadsystemd-881b1f358f3750b6fed66f606ad410d09af0ac23.tar.gz
test-network: use splitlines() at one more place
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-network/systemd-networkd-tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py
index 224726f911..0a3ac1e56e 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))