diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-09-05 14:23:20 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-09-05 14:23:20 +0200 |
commit | e6b305b41ab06f8a2eed408aef21baac6faaae67 (patch) | |
tree | 59c60f9f0c9a1ea4fc50641a92dc93c0e4b2ea12 | |
parent | 0cf0cf7e42b62350fe6c8d6c2cbfb4e9c48a6f75 (diff) | |
download | python-systemd-e6b305b41ab06f8a2eed408aef21baac6faaae67.tar.gz |
tests: adapt to python2.7 output again
-rw-r--r-- | systemd/journal.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/systemd/journal.py b/systemd/journal.py index 7105818..2b79b20 100644 --- a/systemd/journal.py +++ b/systemd/journal.py @@ -421,8 +421,7 @@ def stream(identifier, priority=LOG_DEBUG, level_prefix=False): >>> from systemd import journal >>> stream = journal.stream('myapp') - >>> stream.write('message...\n') - 11 + >>> res = stream.write('message...\n') will produce the following message in the journal:: @@ -433,7 +432,7 @@ def stream(identifier, priority=LOG_DEBUG, level_prefix=False): Using the interface with print might be more convinient: >>> from __future__ import print_function - >>> print('message...', file=stream) + >>> print('message...', file=stream) # doctest: +SKIP priority is the syslog priority, one of `LOG_EMERG`, `LOG_ALERT`, `LOG_CRIT`, `LOG_ERR`, `LOG_WARNING`, |