aboutsummaryrefslogtreecommitdiffstats
path: root/libbe
diff options
context:
space:
mode:
Diffstat (limited to 'libbe')
-rw-r--r--libbe/command/base.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/libbe/command/base.py b/libbe/command/base.py
index 4e1e41f..54de8c2 100644
--- a/libbe/command/base.py
+++ b/libbe/command/base.py
@@ -483,8 +483,7 @@ class StringInputOutput (InputOutput):
def get_stdout(self):
ret = self.stdout.getvalue()
- self.stdout = StringIO.StringIO() # clear stdout for next read
- self.stdin.encoding = 'utf-8'
+ self.stdout.truncate(size=0)
return ret
class UnconnectedStorageGetter (object):