Closed GoogleCodeExporter closed 9 years ago
I am not sure how exactly to submit a patch, but this should fix the issue:
$ svn diff pydot.py
Index: pydot.py
===================================================================
--- pydot.py (revision 9)
+++ pydot.py (working copy)
@@ -234,7 +234,7 @@
for edge in edge_list:
- e = Edge( node_prefix + edge[0], node_prefix + edge[1] )
+ e = Edge( node_prefix + str(edge[0]), node_prefix + str(edge[1]) )
graph.add_edge(e)
return graph
Original comment by shashank...@gmail.com
on 17 Oct 2008 at 10:34
Patch worked for me. Thanks.
Original comment by chris...@gmail.com
on 12 Dec 2008 at 5:37
Thanks for the patch!
I also had to do the following (I am using pydot with Networkx):
diff pydot-1.0.2/pydot.py pydot-1.0.2_patched/pydot.py
237,238c237,238
< e = Edge( node_prefix + edge[0], node_prefix + edge[1] )
< graph.add_edge(e)
---
> e = Edge( node_prefix + str(edge[0]), node_prefix + str(edge[1]) )
> graph.add_edge(e)
900c900
< edge_attr.append( attr + '=' + quote_if_necessary(value) )
---
> edge_attr.append( attr + '=' + str(quote_if_necessary(value)) )
Original comment by simon.kn...@gmail.com
on 15 Oct 2009 at 4:29
Works for me, can this be committed?
Original comment by dgtlm...@gmail.com
on 8 Dec 2009 at 1:41
I'd like to see this fixed ASAP as I have code that depends on it (and that
needs to be deployed) - so I can't
depend on other users having a modified version of pydot installed.
Original comment by dru...@gmail.com
on 13 Dec 2009 at 8:32
Original comment by ero.carr...@gmail.com
on 30 Oct 2010 at 11:54
Original issue reported on code.google.com by
shashank...@gmail.com
on 17 Oct 2008 at 10:23