File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -462,7 +462,7 @@ def _serialize_volume_info(volume_info):
462
462
if not (np .array_equal (volume_info [key ], [20 ]) or np .array_equal (
463
463
volume_info [key ], [2 , 0 , 20 ])):
464
464
warnings .warn ("Unknown extension code." )
465
- strings .append (np .array (volume_info [key ], dtype = '>i4' ).tostring ())
465
+ strings .append (np .array (volume_info [key ], dtype = '>i4' ).tobytes ())
466
466
elif key in ('valid' , 'filename' ):
467
467
val = volume_info [key ]
468
468
strings .append ('{0} = {1}\n ' .format (key , val ).encode ('utf-8' ))
@@ -474,4 +474,4 @@ def _serialize_volume_info(volume_info):
474
474
val = volume_info [key ]
475
475
strings .append ('{0} = {1:f} {2:f} {3:f}\n ' .format (
476
476
key .ljust (6 ), val [0 ], val [1 ], val [2 ]).encode ('utf-8' ))
477
- return '' .join (strings )
477
+ return b '' .join (strings )
You can’t perform that action at this time.
0 commit comments