]> jfr.im git - irc/rizon/acid.git/commitdiff
Fix stdout/stderr redirectors to work better
authorAdam <redacted>
Wed, 18 Feb 2015 17:14:44 +0000 (12:14 -0500)
committerAdam <redacted>
Wed, 18 Feb 2015 17:14:44 +0000 (12:14 -0500)
pyva/pyva/src/main/python/core.py

index 19a77284b4712a1baa8234d0ce0441ff42d22aec..d9d1bcf6afc4c2ce977f2eb0206f21f73994dabd 100644 (file)
@@ -32,12 +32,12 @@ import sys
 
 class StdOutWriter(object):
        def write(self, what):
-               # print is Python keyword, so call println with what.strip() instead of print
-               javasys.out.println(what.rstrip())
+               # print is a Python keyword
+               javasys.out['print'](what)
 
 class StdErrWriter(object):
        def write(self, what):
-               javasys.err.println(what.rstrip())
+               javasys.err['print'](what)
 
 sys.stdout = StdOutWriter()
 sys.stderr = StdErrWriter()