From 8843e48bfc2051892e9af0dc4da48cef37908cf7 Mon Sep 17 00:00:00 2001 From: Cas Cremers Date: Tue, 27 Oct 2020 23:38:58 +0100 Subject: [PATCH] Python3 refix. --- gui/Gui/Makeimage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/Gui/Makeimage.py b/gui/Gui/Makeimage.py index bebe17f..3e68939 100644 --- a/gui/Gui/Makeimage.py +++ b/gui/Gui/Makeimage.py @@ -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 #