diff options
author | Steven Hiscocks <steven@hiscocks.me.uk> | 2013-02-16 17:29:57 +0000 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-02-22 16:57:44 +0100 |
commit | 71766afa2d80ffe1b03c410f6d5ffdc140883314 (patch) | |
tree | c800587669dab58110db50d791d4bf453b21f651 /src/python-systemd/journal.py | |
parent | bf1ced5503bf02fa8c18f0089f4cf74a5456c3c9 (diff) |
systemd-python: Tidy up _reader error handling
Diffstat (limited to 'src/python-systemd/journal.py')
-rw-r--r-- | src/python-systemd/journal.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/python-systemd/journal.py b/src/python-systemd/journal.py index 6e82a460b5..db35ba2005 100644 --- a/src/python-systemd/journal.py +++ b/src/python-systemd/journal.py @@ -115,13 +115,13 @@ class Journal(_Journal): args.extend(_make_line(key, val) for key, val in kwargs.items()) super(Journal, self).add_match(*args) - def get_next(self, *args, **kwargs): + def get_next(self, skip=1): return self._convert_entry( - super(Journal, self).get_next(*args, **kwargs)) + super(Journal, self).get_next(skip)) - def query_unique(self, key, *args, **kwargs): + def query_unique(self, key): return set(self._convert_field(key, value) - for value in super(Journal, self).query_unique(key, *args, **kwargs)) + for value in super(Journal, self).query_unique(key)) def log_level(self, level): """Sets maximum log level by setting matches for PRIORITY.""" |