diff options
author | Steven Hiscocks <steven@hiscocks.me.uk> | 2013-02-16 18:53:52 +0000 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-02-22 16:57:44 +0100 |
commit | 5bb2b8d5e40eadde6ab9cc2941d2395c93e2a545 (patch) | |
tree | 0151e12ad725de286785679ba33b2679332dc6c1 /src/python-systemd/journal.py | |
parent | a49f4d17bfc50c5864b992e2410a41f96286afc1 (diff) |
systemd-python: _reader add_match takes single string
python code now takes care of multiple matches
Diffstat (limited to 'src/python-systemd/journal.py')
-rw-r--r-- | src/python-systemd/journal.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/python-systemd/journal.py b/src/python-systemd/journal.py index 46affcee00..279662e6a6 100644 --- a/src/python-systemd/journal.py +++ b/src/python-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( |