Python3 refix.

This commit is contained in:
Cas Cremers 2020-10-27 23:38:58 +01:00
parent 85d646b133
commit 8843e48bfc

View File

@ -53,7 +53,7 @@ def writeGraph(attackthread,txt,fp):
ALL = 3
def graphLine(txt):
fp.write(("\t%s;\n" % (txt)).encode('utf-8'))
fp.write("\t%s;\n" % (txt))
def setAttr(atxt,EdgeNodeDefAll=ALL):
if EdgeNodeDefAll == ALL:
@ -81,7 +81,7 @@ def writeGraph(attackthread,txt,fp):
# write all graph lines but add layout modifiers
for l in txt.splitlines():
fp.write(l.encode('utf-8'))
fp.write(l)
if l.startswith("digraph"):
# Write additional stuff for this graph
#