From 097bcda6ce689720a58f17dfd855decd80c8d4ef Mon Sep 17 00:00:00 2001 From: Steven Hiscocks Date: Sat, 16 Feb 2013 18:53:52 +0000 Subject: systemd-python: _reader add_match takes single string python code now takes care of multiple matches --- systemd/journal.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'systemd/journal.py') diff --git a/systemd/journal.py b/systemd/journal.py index 46affce..279662e 100644 --- a/systemd/journal.py +++ b/systemd/journal.py @@ -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( -- cgit v1.2.1