<s> from libnmap . parser import NmapParser <EOL> rep1 = NmapParser . parse_fromfile ( '<STR_LIT>' ) <EOL> rep2 = NmapParser . parse_fromfile ( '<STR_LIT>' ) <EOL> rep1_items_changed = rep1 . diff ( rep2 ) . changed ( ) <EOL> changed_host_id = rep1_items_changed . pop ( ) . split ( '<STR_LIT>' ) [ <NUM_LIT:1> ] <EOL> changed_host1 = rep1 . get_host_byid ( changed_host_id ) <EOL> changed_host2 = rep2 . get_host_byid ( changed_host_id ) <EOL> host1_items_changed = changed_host1 . diff ( changed_host2 ) . changed ( ) <EOL> changed_service_id = host1_items_changed . pop ( ) . split ( '<STR_LIT>' ) [ <NUM_LIT:1> ] <EOL> changed_service1 = changed_host1 . get_service_byid ( changed_service_id ) <EOL> changed_service2 = changed_host2 . get_service_byid ( changed_service_id ) <EOL> service1_items_changed = changed_service1 . diff ( changed_service2 ) . changed ( ) <EOL> for diff_attr in service1_items_changed : <EOL> print ( "<STR_LIT>" . format ( changed_service1 . id , <EOL> changed_service2 . id , <EOL> diff_attr , <EOL> getattr ( changed_service1 , <EOL> diff_attr ) , <EOL> diff_attr , <EOL> getattr ( changed_service2 , <EOL> diff_attr ) ) ) </s>
