From ed0a480556d878a91c779f0d4ccf26b43c623eb6 Mon Sep 17 00:00:00 2001 From: weckyy702 Date: Sun, 27 Dec 2020 17:39:24 +0100 Subject: [PATCH] fixed syntax warning in --- gui/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/utils.py b/gui/utils.py index 056be0e..904fca4 100644 --- a/gui/utils.py +++ b/gui/utils.py @@ -6,7 +6,7 @@ from draw.Iinstruction import * def nassi(filepath:str, output_path: str, gui, font_filepath: str=None): NSD = NassiShneidermanDiagram(gui.debug_mode) - if font_filepath is not None and font_filepath is not "": + if font_filepath is not None and font_filepath != "": NSD.set_font(font_filepath) NSD.load_from_file(filepath) NSD.convert_to_image(output_path, 500)