Skip to content

Commit 3ced10a

Browse files
BF: labels in a dlabel file are loaded as string rather than bytes in python 3
1 parent 6d0ac2f commit 3ced10a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/cifti2/parse_cifti2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ def flush_chardata(self):
566566

567567
elif self.write_to == 'Label':
568568
label = self.struct_state[-1]
569-
label.label = data.strip().encode('utf-8')
569+
label.label = data.strip()
570570

571571
elif self.write_to == 'MapName':
572572
named_map = self.struct_state[-1]

0 commit comments

Comments
 (0)