Browse Source

Remove six

Remove six.moves Replace the following items with Python 3 style code.

- six.moves.cStringIO

Change-Id: I87dcfd4c802b97c3bf3557b243b574bb72fbd3a6
changes/26/758926/1
wangzihao 10 months ago
parent
commit
14f17d978d
  1. 4
      tools/lintstack.py

4
tools/lintstack.py

@ -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…
Cancel
Save