Skip to content

Commit 8ad2b16

Browse files
authored
Merge pull request #234 from hramrach/develop
2 parents d0dd015 + 5f8fbde commit 8ad2b16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stl/stl.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,9 @@ def _write_ascii(self, fh, name):
311311
else:
312312

313313
def p(s, file):
314-
file.write(b(f'{s}\n'))
314+
file.write(b(s) + b'\n')
315315

316-
p(f'solid {name}', file=fh)
316+
p(b'solid ' + b(name), file=fh)
317317

318318
for row in self.data:
319319
# Explicitly convert each component to standard float for
@@ -343,7 +343,7 @@ def p(s, file):
343343
p(' endloop', file=fh)
344344
p('endfacet', file=fh)
345345

346-
p(f'endsolid {name}', file=fh)
346+
p(b'endsolid ' + b(name), file=fh)
347347

348348
def get_header(self, name):
349349
# Format the header

0 commit comments

Comments
 (0)