Allow deparsed out to be str as well as unicode

This commit is contained in:
rocky
2017-06-19 07:55:09 -04:00
parent af10f99776
commit 5a519ed36a

View File

@@ -549,6 +549,8 @@ class SourceWalker(GenericASTTraversal, object):
if self.pending_newlines:
out = out[:-self.pending_newlines]
if isinstance(out, str):
out = unicode(out, 'utf-8')
self.f.write(out)
def println(self, *data):