From ed193e7cc703c98f8fd9eeda8e6c52cd94833e77 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 29 Jun 2013 23:19:38 +0200 Subject: [PATCH] io.StringIO has no attribute 'reset'. --- src/world.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/world.py b/src/world.py index 4be6173d3..2e3ab7e4f 100644 --- a/src/world.py +++ b/src/world.py @@ -165,13 +165,13 @@ def upkeep(): s = sys.stdout.getvalue() if s: log.warning('Printed to stdout after daemonization: %s', s) - sys.stdout.reset() # Seeks to 0. + sys.stdout.seek(0) sys.stdout.truncate() # Truncates to current offset. assert not type(sys.stderr) == file, 'Not a StringIO object!' s = sys.stderr.getvalue() if s: log.error('Printed to stderr after daemonization: %s', s) - sys.stderr.reset() # Seeks to 0. + sys.stderr.seek(0) sys.stderr.truncate() # Truncates to current offset. doFlush = conf.supybot.flush() and not starting if doFlush: