Skip to content

Commit 203ed0c

Browse files
Use f-string to interpolate variable
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent 5a71493 commit 203ed0c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

nibabel/streamlines/tck.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,7 @@ def _write_header(fileobj, header):
279279

280280
# Write header to file.
281281
fileobj.write(out)
282-
fileobj.write(b"\nfile: . " + f'{hdr_offset}'.encode('utf-8') + b"\n")
283-
fileobj.write(b"END\n")
282+
fileobj.write(f'\nfile: . {hdr_offset}\nEND\n'.encode('utf-8'))
284283

285284
@classmethod
286285
def _read_header(cls, fileobj):

0 commit comments

Comments
 (0)