Refactor if statement
Refactor if statement
This commit is contained in:
committed by
Yorik van Havre
parent
c7e12e0951
commit
3f8e8f893d
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user