From bff72cfd4b2e1dda68fdc4be1abcb3f56d36e1e3 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Fri, 29 Aug 2014 12:33:37 -0400 Subject: Don't use cStringIO --- testutils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'testutils.py') diff --git a/testutils.py b/testutils.py index 6a437c6..a059fe4 100644 --- a/testutils.py +++ b/testutils.py @@ -19,7 +19,6 @@ from __future__ import print_function import collections import contextlib import functools -import cStringIO import sys import re import unittest @@ -35,7 +34,9 @@ from pylint.utils import PyLintASTWalker from pylint.reporters import BaseReporter from pylint.interfaces import IReporter from pylint.lint import PyLinter + import six +from six.moves import StringIO # Utils @@ -96,7 +97,7 @@ class TestReporter(BaseReporter): self.reset() def reset(self): - self.out = cStringIO.StringIO() + self.out = StringIO() self.messages = [] def add_message(self, msg_id, location, msg): -- cgit v1.2.1