Skip to content

Commit fab6601

Browse files
committed
flush(), close() stream.
1 parent ba05b3c commit fab6601

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

vpype_gcode/gwrite.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ def gwrite(document: vp.Document, output: typing.TextIO, profile: str):
158158
if document_end is not None:
159159
output.write(document_end.format(filename=filename))
160160
output.flush()
161+
output.close()
161162

162163
return document
163164

0 commit comments

Comments
 (0)