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> | 2015-07-05 14:19:15 -0400 |
| commit | 097bcda6ce689720a58f17dfd855decd80c8d4ef (patch) | |
| tree | 003271ea2786d932dfa00835100397c42a0a3af4 /systemd/journal.py | |
| parent | 7258e1a44ac14fb57a86a877d6969d62ffaa4750 (diff) | |
| download | python-systemd-097bcda6ce689720a58f17dfd855decd80c8d4ef.tar.gz | |
systemd-python: _reader add_match takes single string
python code now takes care of multiple matches
Diffstat (limited to 'systemd/journal.py')
| -rw-r--r-- | systemd/journal.py | 3 |
1 files changed, 2 insertions, 1 deletions
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( |
