# HG changeset patch # User Dirk Loss # Date 1263381402 -3600 # Node ID f263168cfb0ea5d15fa468476a1800abc5d0ccac # Parent 3bb977850573eb3e900f6abbc1ffa63ed90b60e4 Fixed console redirection bug in sniff() This was left-over from the old console handling code in Scapy-win. Now this caused a NameError: "global name 'console' is not defined" diff -r 3bb977850573 -r f263168cfb0e scapy/arch/windows/__init__.py --- a/scapy/arch/windows/__init__.py Tue Jan 12 11:15:13 2010 +0100 +++ b/scapy/arch/windows/__init__.py Wed Jan 13 12:16:42 2010 +0100 @@ -518,7 +518,7 @@ if prn: r = prn(p) if r is not None: - print >> console, r + print r if count > 0 and c >= count: break except KeyboardInterrupt: