diff --git a/tools/lintstack.py b/tools/lintstack.py index 9dee28565b..da0a6b9750 100755 --- a/tools/lintstack.py +++ b/tools/lintstack.py @@ -19,11 +19,12 @@ from __future__ import print_function -import cStringIO as StringIO import json import re import sys +import six + from pylint import lint from pylint.reporters import text @@ -136,7 +137,7 @@ class ErrorKeys(object): def run_pylint(): - buff = StringIO.StringIO() + buff = six.StringIO() reporter = text.ParseableTextReporter(output=buff) args = ["--include-ids=y", "-E", "manila"] lint.Run(args, reporter=reporter, exit=False)