Merge "use six.StringIO for compatibility with io.StringIO in python3"
This commit is contained in:
commit
f9705f8509
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user