summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichele Simionato <michele.simionato@gmail.com>2011-02-22 14:20:45 +0100
committerMichele Simionato <michele.simionato@gmail.com>2011-02-22 14:20:45 +0100
commit4ffcbf0bea956c7b7feeade6cd41e7bd382a0fab (patch)
tree828ee6a33014cc4c13c8f3475fb2a9bfb21de14f
parent02d7e73ea41c57e0f1abe47cfda0cedad4a7c720 (diff)
downloadmicheles-4ffcbf0bea956c7b7feeade6cd41e7bd382a0fab.tar.gz
Fixed a stray newline in the output of plac
-rw-r--r--plac/CHANGES.txt2
-rw-r--r--plac/plac.py2
-rw-r--r--plac/plac_ext.py4
3 files changed, 6 insertions, 2 deletions
diff --git a/plac/CHANGES.txt b/plac/CHANGES.txt
index 25608a7..54a556e 100644
--- a/plac/CHANGES.txt
+++ b/plac/CHANGES.txt
@@ -1,6 +1,8 @@
HISTORY
----------
+0.8.1 Removed a stray newline in the output of plac, as signaled
+ by Daniele Pighin (2011-02-22)
0.8.0 Added a monitor framework and a TkMonitor (2011-02-16)
0.7.6 Fixed the error propagation in ``Interpreter.__exit__``.
Added a note about commandline and marrow.script in the documentation
diff --git a/plac/plac.py b/plac/plac.py
index c762cca..091550f 100644
--- a/plac/plac.py
+++ b/plac/plac.py
@@ -27,7 +27,7 @@
See doc/plac.pdf, doc/plac_adv.pdf for the documentation.
"""
-__version__ = '0.8.0'
+__version__ = '0.8.1'
from plac_core import *
diff --git a/plac/plac_ext.py b/plac/plac_ext.py
index 4429aec..b436d06 100644
--- a/plac/plac_ext.py
+++ b/plac/plac_ext.py
@@ -1000,7 +1000,9 @@ class Interpreter(object):
task = i.send(i.obj._args_) # synchronous
if task.exc:
raise task.etype, task.exc, task.tb
- print(task)
+ out = str(task)
+ if out:
+ print(out)
elif i.obj._interact_:
i.interact(stdin, prompt, verbose)
else: