systemd-python: _reader add_match takes single string
python code now takes care of multiple matches
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
a49f4d17bf
commit
5bb2b8d5e4
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user