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): """