jp (base, blog, output(std)): fixed bad unicode handling in stdout, use of jp.disp instead of simple print
This commit is contained in:
parent
8d578cec3b
commit
8155bc3ee8
1 changed files with 27 additions and 25 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue