Removes hardwired binary reel header class type in write_binary_reel_header().

This commit is contained in:
Robert Smallshire
2015-05-06 11:32:32 +02:00
parent 3f82865c2d
commit fab758f9fc
+1 -1
View File
@@ -637,7 +637,7 @@ def write_binary_reel_header(fh, binary_reel_header, endian='>'):
The file pointer for fh will be positioned at the first byte following
the binary reel header.
"""
header_packer = make_header_packer(BinaryReelHeader, endian) # TODO: Hard wiring
header_packer = make_header_packer(type(binary_reel_header), endian)
buffer = header_packer.pack(binary_reel_header)
fh.write(buffer)
fh.seek(REEL_HEADER_NUM_BYTES)