Remove six
Remove six.moves Replace the following items with Python 3 style code. - six.moves.cStringIO Change-Id: I87dcfd4c802b97c3bf3557b243b574bb72fbd3a6
This commit is contained in:
parent
8f5e010673
commit
14f17d978d
|
@ -16,6 +16,7 @@
|
|||
|
||||
"""pylint error checking."""
|
||||
|
||||
import io
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
|
@ -23,7 +24,6 @@ import sys
|
|||
|
||||
from pylint import lint
|
||||
from pylint.reporters import text
|
||||
from six.moves import cStringIO as StringIO
|
||||
|
||||
# enabled checks
|
||||
# http://pylint-messages.wikidot.com/all-codes
|
||||
|
@ -159,7 +159,7 @@ class ErrorKeys(object):
|
|||
|
||||
|
||||
def run_pylint():
|
||||
buff = StringIO()
|
||||
buff = io.StringIO()
|
||||
reporter = text.ParseableTextReporter(output=buff)
|
||||
args = ["-rn", "--disable=all", "--enable=" + ",".join(ENABLED_CODES),
|
||||
"murano"]
|
||||
|
|
Loading…
Reference in New Issue