[svn r109] Added flush to NullSTDOut

This commit is contained in:
kartic.linden
2008-04-17 14:02:37 -04:00
parent 0370fb5d20
commit e003a8d20e

View File

@@ -670,8 +670,12 @@ def main():
# *HACK: some modules may emit on stderr, which breaks everything.
class NullSTDOut(object):
def write(a, b):
def noop(*args):
pass
write = noop
read = noop
flush = noop
sys.stderr = NullSTDOut()
sys.stdout = NullSTDOut()