[Rivet-svn] rivet: Fix --show-analysis

Rivet Mercurial rivet at projects.hepforge.org
Fri Nov 17 19:00:01 GMT 2017


details:   https://rivet.hepforge.org/hg/rivet/rev/05a8efb115ec
branches:  
changeset: 6147:05a8efb115ec
user:      David Grellscheid <david.grellscheid at durham.ac.uk>
date:      Fri Nov 17 18:56:45 2017 +0000
description:
Fix --show-analysis

diffs (11 lines):

--- a/bin/rivet	Fri Nov 17 18:32:49 2017 +0000
+++ b/bin/rivet	Fri Nov 17 18:56:45 2017 +0000
@@ -365,7 +365,7 @@
         try:
             import tempfile, subprocess
             tffd, tfpath = tempfile.mkstemp(prefix="rivet-show.")
-            os.write(tffd, "\n\n".join(msgs))
+            os.write(tffd, u"\n\n".join(msgs).encode('utf-8'))
             if sys.stdout.isatty():
                 pager = subprocess.Popen(["less", "-FX", tfpath]) #, stdin=subprocess.PIPE)
                 pager.communicate()


More information about the Rivet-svn mailing list