Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pydot 1.0.4 does not parse graph node with "."(dot) in it #46

Closed
GoogleCodeExporter opened this issue Apr 13, 2015 · 3 comments
Closed

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. in file test.dot, add a node with "." eg 2.3 [label="dot_node"] 
2. pydot.graph_from_dot_file(test.dot)
3. parse will fail

What is the expected output? What do you see instead?
node 2.3 will fail to parse. result in runtime exception

What version of the product are you using? On what operating system?
1.0.4 ubuntu 10.10

Possible fix:
In dot_parser.py, replace the line:
indentifier =  Word(alphanums + "_").setName("identifier")
with
indentifier =  Word(alphanums + "_" + ".").setName("identifier")

Original issue reported on code.google.com by overmin...@gmail.com on 3 Mar 2011 at 3:36

@GoogleCodeExporter
Copy link
Author

Original comment by ero.carr...@gmail.com on 3 Mar 2011 at 11:54

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

This issue was closed by revision r22.

Original comment by ero.carr...@gmail.com on 3 Mar 2011 at 11:55

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Fixed in revision 22. Your suggested fix works and does not cause problems in 
the regression tests

Original comment by ero.carr...@gmail.com on 3 Mar 2011 at 11:56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant