Skip to content

Commit b5f1849

Browse files
committed
Fix
1 parent 2e01d49 commit b5f1849

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/freesurfer/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def _read_volume_info(fobj):
5454
volume_info['head'] = head
5555
for key in ['valid', 'filename', 'volume', 'voxelsize', 'xras', 'yras',
5656
'zras', 'cras']:
57-
pair = fobj.readline().split('=')
57+
pair = fobj.readline().decode('utf-8').split('=')
5858
if pair[0].strip() != key or len(pair) != 2:
5959
raise IOError('Error parsing volume info.')
6060
volume_info[pair[0]] = pair[1]

0 commit comments

Comments
 (0)