Fixed console redirection bug in sniff()
authorDirk Loss <d.loss@infodas.de>
Wed Jan 13 12:16:42 2010 +0100 (2010-01-13)
changeset 1216f263168cfb0e
parent 1215 3bb977850573
child 1221 de0eff2c9dee
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"
scapy/arch/windows/__init__.py
     1.1 --- a/scapy/arch/windows/__init__.py	Tue Jan 12 11:15:13 2010 +0100
     1.2 +++ b/scapy/arch/windows/__init__.py	Wed Jan 13 12:16:42 2010 +0100
     1.3 @@ -518,7 +518,7 @@
     1.4              if prn:
     1.5                  r = prn(p)
     1.6                  if r is not None:
     1.7 -                    print >> console, r
     1.8 +                    print r
     1.9              if count > 0 and c >= count:
    1.10                  break
    1.11          except KeyboardInterrupt: