Skip to content

Instantly share code, notes, and snippets.

Created March 8, 2015 15:40
Show Gist options
  • Save anonymous/f7181ea4f1fc8dc75a3d to your computer and use it in GitHub Desktop.
Save anonymous/f7181ea4f1fc8dc75a3d to your computer and use it in GitHub Desktop.
Issue attachments for pydot/pydot-ng#92: https://github.com/pydot/pydot-ng/issues/92
--- /usr/lib/python2.6/site-packages/pydot.pydot2014-06-12 06:22:57.000000000 +0400
+++ virtenv/lib/python2.6/site-packages/pydot.pydot2014-06-12 06:28:42.515864719 +0400
@@ -1455,11 +1455,11 @@
edge = Edge(obj_dict=obj)
- if self.obj_dict.get('simplify', False) and elm in edges_done:
+ if self.obj_dict.get('simplify', False) and edge.obj_dict['points'] in edges_done:
continue
-
+
graph.append( edge.to_string() + '\n' )
- edges_done.add(edge)
+ edges_done.add(edge.obj_dict['points'])
else:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment