def setnmaplimits():
 for (limit, value) in NMAP_LIMITS.iteritems():
  resource.setrlimit(limit, value)

def setnmaplimits ( ) : for ( limit , value ) in NMAP_LIMITS . iteritems ( ) : resource . setrlimit ( limit , value )
enforces limits from nmap_limits global variable .