Skip to content

Commit

Permalink
Just print a unicode string directly
Browse files Browse the repository at this point in the history
  • Loading branch information
gsnedders committed Jan 6, 2013
1 parent 4213ee2 commit e1a400c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def printOutput(parser, document, opts):
if not hasattr(document,'__getitem__'):
document = [document]
for fragment in document:
print(parser.tree.testSerializer(fragment).encode("utf-8"))
print(parser.tree.testSerializer(fragment))
elif opts.hilite:
sys.stdout.write(document.hilite("utf-8"))
elif opts.html:
Expand Down

0 comments on commit e1a400c

Please sign in to comment.