diff --git a/construct/formats/graphics/bmp.py b/construct/formats/graphics/bmp.py index 687421de0..aad464c25 100644 --- a/construct/formats/graphics/bmp.py +++ b/construct/formats/graphics/bmp.py @@ -55,7 +55,7 @@ def _decode(self, obj): #=============================================================================== bitmap_file = Struct("bitmap_file", # header - Const(String("signature", 2), "BM"), + Const(String("signature", 2), b"BM"), ULInt32("file_size"), Padding(4), ULInt32("data_offset"),