Merge "use six.StringIO for compatibility with io.StringIO in python3"

This commit is contained in:
Jenkins 2016-12-20 14:50:03 +00:00 committed by Gerrit Code Review
commit f9705f8509

View File

@ -19,11 +19,12 @@
from __future__ import print_function from __future__ import print_function
import cStringIO as StringIO
import json import json
import re import re
import sys import sys
import six
from pylint import lint from pylint import lint
from pylint.reporters import text from pylint.reporters import text
@ -136,7 +137,7 @@ class ErrorKeys(object):
def run_pylint(): def run_pylint():
buff = StringIO.StringIO() buff = six.StringIO()
reporter = text.ParseableTextReporter(output=buff) reporter = text.ParseableTextReporter(output=buff)
args = ["--include-ids=y", "-E", "manila"] args = ["--include-ids=y", "-E", "manila"]
lint.Run(args, reporter=reporter, exit=False) lint.Run(args, reporter=reporter, exit=False)