def displayhosts(recordsgen, out=sys.stdout, **kargs):
 for record in recordsgen:
  displayhost(record, out=out, **kargs)
  if os.isatty(out.fileno()):
   raw_input()
  else:
   out.write('\n')

def displayhosts ( recordsgen , out = sys . stdout , ** kargs ) : for record in recordsgen : displayhost ( record , out = out , ** kargs ) if os . isatty ( out . fileno ( ) ) : raw_input ( ) else : out . write ( '\n' )
displays the nmap scan results generated by recordsgen .