Refactor if statement

Refactor if statement
This commit is contained in:
Rene 'Renne' Bartsch
2020-01-10 11:54:52 +01:00
committed by Yorik van Havre
parent c7e12e0951
commit 3f8e8f893d

View File

@@ -114,7 +114,7 @@ def export(objectslist, filename, argstring):
gcode = dia.editor.toPlainText()
# Save to file
if not filename == '-':
if filename != '-':
gfile = open(filename, "w")
gfile.write(gcode)
gfile.close()