|
[yoda-svn] yoda: Auto-Unicode mapping didn't seem to workYODA Mercurial yoda at projects.hepforge.orgSun Oct 15 11:15:01 BST 2017
details: https://yoda.hepforge.org/hg/yoda/rev/698d9535d888 branches: changeset: 1427:698d9535d888 user: Andy Buckley <andy at insectnation.org> date: Sun Oct 15 11:09:29 2017 +0100 description: Auto-Unicode mapping didn't seem to work diffs (10 lines): --- a/pyext/yoda/include/IO.pyx Tue Oct 10 09:37:03 2017 +0100 +++ b/pyext/yoda/include/IO.pyx Sun Oct 15 11:09:29 2017 +0100 @@ -74,6 +74,7 @@ ## Write a string to a file ## The file argument can either be a file object, filename, or special "-" reference to stdout def _str_to_file(s, file_or_filename): + s = unicode(s) if hasattr(file_or_filename, 'write'): file_or_filename.write(s) elif file_or_filename == "-":
More information about the yoda-svn mailing list |