components/safe_browsing/content/resources/gen_file_type_proto.py
def FilterForPlatformAndWrite(full_pb, platform_type, outfile):
    """ Filter and write out a file for this platform """
    # Filter it
    filtered_pb = FilterPbForPlatform(full_pb, platform_type)
    # Serialize it
    binary_pb_str = filtered_pb.SerializeToString()
    # Write it to disk
    open(outfile, 'wb').write(binary_pb_str)
 Filter and write out a file for this platform 
Filter and write out a file for this platform
Filter and write out a file for this platform
def FilterForPlatformAndWrite(full_pb, platform_type, outfile):
    filtered_pb = FilterPbForPlatform(full_pb, platform_type)
    binary_pb_str = filtered_pb.SerializeToString()
    open(outfile, 'wb').write(binary_pb_str)
def FilterForPlatformAndWrite ( full_pb , platform_type , outfile ) : filtered_pb = FilterPbForPlatform ( full_pb , platform_type ) binary_pb_str = filtered_pb . SerializeToString ( ) open ( outfile , 'wb' ) . write ( binary_pb_str )
Filter and write out a file for this platform
Filter and write out a file for this platform
""" Filter and write out a file for this platform """ # Filter it # Serialize it # Write it to disk
full_pb
platform_type
outfile