From 39adabb820085ea2263df2dde63a5ed751825222 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Fri, 21 Jun 2013 20:58:11 +0000 Subject: [PATCH] [Cython] Fix a bug writing graphviz input files --- interfaces/cython/cantera/reactionpath.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interfaces/cython/cantera/reactionpath.pyx b/interfaces/cython/cantera/reactionpath.pyx index 390c43733..1fc70f097 100644 --- a/interfaces/cython/cantera/reactionpath.pyx +++ b/interfaces/cython/cantera/reactionpath.pyx @@ -151,7 +151,7 @@ cdef class ReactionPathDiagram: Write the reaction path diagram formatted for use by Graphviz's 'dot' program to the file named *filename*. """ - open(filename, 'wb').write(self.get_dot()) + open(filename, 'wb').write(self.get_dot().encode('utf-8')) def get_data(self): """