[svn r109] Added flush to NullSTDOut
This commit is contained in:
@@ -670,8 +670,12 @@ def main():
|
|||||||
|
|
||||||
# *HACK: some modules may emit on stderr, which breaks everything.
|
# *HACK: some modules may emit on stderr, which breaks everything.
|
||||||
class NullSTDOut(object):
|
class NullSTDOut(object):
|
||||||
def write(a, b):
|
def noop(*args):
|
||||||
pass
|
pass
|
||||||
|
write = noop
|
||||||
|
read = noop
|
||||||
|
flush = noop
|
||||||
|
|
||||||
sys.stderr = NullSTDOut()
|
sys.stderr = NullSTDOut()
|
||||||
sys.stdout = NullSTDOut()
|
sys.stdout = NullSTDOut()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user