From 0b9d9fc28446ba9e81d2e711a1d43090aa331aa8 Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Sat, 5 Sep 2020 08:55:31 +0100 Subject: [PATCH] autotest: use StringIO correctly --- Tools/autotest/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/autotest/common.py b/Tools/autotest/common.py index 2252588883..a8b5f37062 100644 --- a/Tools/autotest/common.py +++ b/Tools/autotest/common.py @@ -5386,7 +5386,7 @@ Also, ignores heartbeats not from our target system''' class Capturing(list): def __enter__(self): self._stderr = sys.stderr - sys.stderr = self._stringio = StringIO() + sys.stderr = self._stringio = StringIO.StringIO() return self def __exit__(self, *args): self.extend(self._stringio.getvalue().splitlines())