[Cython] Fix a bug writing graphviz input files

This commit is contained in:
Ray Speth 2013-06-21 20:58:11 +00:00
parent 66981a244d
commit 39adabb820

View file

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