I cited the scapy module as being the cause of a problem, it wasn't.

It was actually a problem in the logging module.
This commit is contained in:
Bob Farrell
2008-06-16 23:22:29 +01:00
parent a5fce828f3
commit 7aa6db358c
+4 -3
View File
@@ -766,7 +766,7 @@ class Repl( object ):
self.s_hist.append( s.rstrip('\n') )
def flush( self ):
"""Olivier Grisel brought it to my attention that the scapy
"""Olivier Grisel brought it to my attention that the logging
module tries to call this method, since it makes assumptions
about stdout that may not necessarily be true. The docs for
sys.stdout say:
@@ -775,8 +775,9 @@ class Repl( object ):
object is acceptable as long as it has a write() method
that takes a string argument."
So I consider this to be a bug in scapy, and this is a hack
to fix it, unfortunately. I'm sure they're not the only ones."""
So I consider this to be a bug in logging, and this is a hack
to fix it, unfortunately. I'm sure it's not the only module
to do it."""
pass
def echo( self, s, redraw=True ):