1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 22:21:29 +00:00

Add missing make_graph_from_nmap_parser needed by some unittests

This commit is contained in:
dmiller
2014-01-07 20:03:44 +00:00
parent fc49e4ade6
commit 0c995f95d8

View File

@@ -272,3 +272,8 @@ def make_graph_from_hosts(hosts):
graph.set_main_node(main_node)
return graph
def make_graph_from_nmap_parser(parser):
return make_graph_from_hosts(
parser.get_root().search_children('host', deep=True))