From e6b305b41ab06f8a2eed408aef21baac6faaae67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sat, 5 Sep 2015 14:23:20 +0200 Subject: tests: adapt to python2.7 output again --- systemd/journal.py | 5 ++--- 1 file 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`, -- cgit v1.2.1