diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-09-08 10:36:16 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-09-08 10:36:16 +0200 |
commit | 5f36e8647a981569e5555034383c17ba9b31fefc (patch) | |
tree | d725f25a60c6eb8f3c733e1a9deaac55377635a4 | |
parent | 085db21e5e2b0571b7e540f9fde558f5bfef9fac (diff) | |
download | python-systemd-5f36e8647a981569e5555034383c17ba9b31fefc.tar.gz |
Normalize some strange indentation
-rw-r--r-- | systemd/journal.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/systemd/journal.py b/systemd/journal.py index 2b79b20..b5c99d8 100644 --- a/systemd/journal.py +++ b/systemd/journal.py @@ -232,9 +232,9 @@ class Reader(_Reader): if super(Reader, self)._next(skip): entry = super(Reader, self)._get_all() if entry: - entry['__REALTIME_TIMESTAMP'] = self._get_realtime() - entry['__MONOTONIC_TIMESTAMP'] = self._get_monotonic() - entry['__CURSOR'] = self._get_cursor() + entry['__REALTIME_TIMESTAMP'] = self._get_realtime() + entry['__MONOTONIC_TIMESTAMP'] = self._get_monotonic() + entry['__CURSOR'] = self._get_cursor() return self._convert_entry(entry) return dict() @@ -260,7 +260,7 @@ class Reader(_Reader): Reader creation. """ return set(self._convert_field(field, value) - for value in super(Reader, self).query_unique(field)) + for value in super(Reader, self).query_unique(field)) def wait(self, timeout=None): """Wait for a change in the journal. `timeout` is the maximum @@ -335,7 +335,8 @@ class Reader(_Reader): def this_machine(self, machineid=None): """Add match for _MACHINE_ID equal to the ID of this machine. - If specified, machineid should be either a UUID or a 32 digit hex number. + If specified, machineid should be either a UUID or a 32 digit + hex number. Equivalent to add_match(_MACHINE_ID='machineid'). """ @@ -398,8 +399,8 @@ def send(MESSAGE, MESSAGE_ID=None, args.append('MESSAGE_ID=' + id) if CODE_LINE == CODE_FILE == CODE_FUNC == None: - CODE_FILE, CODE_LINE, CODE_FUNC = \ - _traceback.extract_stack(limit=2)[0][:3] + CODE_FILE, CODE_LINE, CODE_FUNC = \ + _traceback.extract_stack(limit=2)[0][:3] if CODE_FILE is not None: args.append('CODE_FILE=' + CODE_FILE) if CODE_LINE is not None: |