]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: use splitlines() at one more place
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 20 May 2019 00:40:30 +0000 (09:40 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 22 May 2019 08:58:46 +0000 (17:58 +0900)
test/test-network/systemd-networkd-tests.py

index 224726f9118271eaff5b1be6280f7de2fb4fad7f..0a3ac1e56e6981e328334048c8b83dba30cbb924 100755 (executable)
@@ -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))