"""Verify that the surgical SWF build changes only the selected ABC tags.""" import hashlib import struct from pathlib import Path def tags(path: Path): data = path.read_bytes() if data[:3] != b"FWS" or struct.unpack_from("> 3 offset = 8 + (5 + rect_bits * 4 + 7) // 8 + 4 result = [] while offset < len(data): start = offset header, = struct.unpack_from("> 6, header & 63 if length == 63: length, = struct.unpack_from("