jp (base, blog, output(std)): fixed bad unicode handling in stdout, use of jp.disp instead of simple print

This commit is contained in:
Goffi 2017-02-21 21:01:40 +01:00
commit 8155bc3ee8

View file

@ -251,9 +251,9 @@ class Jp(object):
"""
if self.verbosity >= verbosity:
if error:
print >>sys.stderr,msg
print >>sys.stderr,msg.encode('utf-8')
else:
print msg
print msg.encode('utf-8')
def output(self, type_, name, extra_outputs, data):
if name in extra_outputs: