bl2/ext/mcuboot/scripts/imgtool_lib/image.py
def check(self):
        """Perform some sanity checking of the image."""
        # If there is a header requested, make sure that the image
        # starts with all zeros.
        if self.header_size > 0:
            if any(v != 0 and v != b'\000' for v in self.payload[0:self.header_size]):
                raise Exception("Padding requested, but image does not start with zeros")
Perform some sanity checking of the image.
Perform some sanity checking of the image.
Perform some sanity checking of the image .
def check(self):
        if self.header_size > 0:
            if any(v != 0 and v != b'\000' for v in self.payload[0:self.header_size]):
                raise Exception("Padding requested, but image does not start with zeros")
def check ( self ) : if self . header_size > 0 : if any ( v != 0 and v != b'\000' for v in self . payload [ 0 : self . header_size ] ) : raise Exception ( "Padding requested, but image does not start with zeros" )
Perform some sanity checking of the image.
Perform some sanity checking of the image .
"""Perform some sanity checking of the image.""" # If there is a header requested, make sure that the image # starts with all zeros.
self