systemd-python: _reader add_match takes single string

python code now takes care of multiple matches
This commit is contained in:
Steven Hiscocks
2013-02-22 16:57:44 +01:00
committed by Zbigniew Jędrzejewski-Szmek
parent a49f4d17bf
commit 5bb2b8d5e4
2 changed files with 15 additions and 100 deletions
+2 -1
View File
@@ -113,7 +113,8 @@ class Journal(_Journal):
def add_match(self, *args, **kwargs):
args = list(args)
args.extend(_make_line(key, val) for key, val in kwargs.items())
super(Journal, self).add_match(*args)
for arg in args:
super(Journal, self).add_match(arg)
def get_next(self, skip=1):
return self._convert_entry(