diff options
| author | Brett Cannon <brett@python.org> | 2014-08-29 12:33:37 -0400 |
|---|---|---|
| committer | Brett Cannon <brett@python.org> | 2014-08-29 12:33:37 -0400 |
| commit | 28073bf450ad20692d02d5af62c008b1ee90905b (patch) | |
| tree | 9d33848354a8b81a7236a28f150ccc466ff485b8 /testutils.py | |
| parent | 14e42b6f6658ad6417d042efb418f541cf77fa99 (diff) | |
| download | pylint-git-28073bf450ad20692d02d5af62c008b1ee90905b.tar.gz | |
Don't use cStringIO
--HG--
branch : python_6
Diffstat (limited to 'testutils.py')
| -rw-r--r-- | testutils.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/testutils.py b/testutils.py index 6a437c6e7..a059fe46c 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): |
