Skip to content

Commit

Permalink
Fixing ascii/unicode problem with Python2
Browse files Browse the repository at this point in the history
The character × in the edge label requires unicode. Thus, the string literal needs a "u" in front to be compatible with Python 2.
  • Loading branch information
bolau authored Feb 27, 2017
1 parent f10219a commit 93287c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tfgraphviz/graphviz_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def edge_label(shape):
else: label = "%i" % shape[0]
for s in shape[1:]:
if s is None: label += "×?"
else: label += "×%i" % s
else: label += u"×%i" % s
return label


Expand Down

0 comments on commit 93287c5

Please sign in to comment.