Skip to content
Commit 27ee11a8 authored by Matt Wala's avatar Matt Wala
Browse files

get_dot_dependency_graph(): Don't use repr() to get statement labels

Sometimes, it is useful to have labels that include escape sequences
significant to the dot language. The string that comes from repr()
doesn't allow us to do that because it escapes all the backslashes.

>>> print(str("a\lb"))
a\lb

>>> print(repr("a\lb"))
'a\\lb'

This change removes the use of repr() and documents that the
statements are turned into strings using str().
parent 49c43c63
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment