(f, n)
return 'WebAssembly v%d executable' % (0x1)
return the name of the format, if it looks like a WebAssembly module, or 0 on unsupported.

    Args:
      f (file): the file to inspect.
      n (any): unused.

    Returns:
      Union[str, int]: str if supported, 0 if unsupported.
return the name of the format, if it looks like a WebAssembly module, or 0 on unsupported.
return the name of the format if it looks like a WebAssembly module or 0 on unsupported .
def accept_file(f, n):
    '''
    return the name of the format, if it looks like a WebAssembly module, or 0 on unsupported.

    Args:
      f (file): the file to inspect.
      n (any): unused.

    Returns:
      Union[str, int]: str if supported, 0 if unsupported.
    '''
    f.seek(0)
    if f.read(4) != b'\x00asm':
        return 0

    if struct.unpack('<I', f.read(4))[0] != 0x1:
        # only support v1 right now
        return 0

    return 'WebAssembly v%d executable' % (0x1)
def accept_file ( f , n ) : f . seek ( 0 ) if f . read ( 4 ) != b'\x00asm' : return 0 if struct . unpack ( '<I' , f . read ( 4 ) ) [ 0 ] != 0x1 : # only support v1 right now return 0 return 'WebAssembly v%d executable' % ( 0x1 )