diff options
-rw-r--r-- | plac/CHANGES.txt | 2 | ||||
-rw-r--r-- | plac/plac.py | 2 | ||||
-rw-r--r-- | plac/plac_ext.py | 4 |
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: |