From 14f17d978d2897f6115f2462c7a232b8ff518254 Mon Sep 17 00:00:00 2001 From: wangzihao Date: Wed, 21 Oct 2020 11:14:29 +0800 Subject: [PATCH] Remove six Remove six.moves Replace the following items with Python 3 style code. - six.moves.cStringIO Change-Id: I87dcfd4c802b97c3bf3557b243b574bb72fbd3a6 --- tools/lintstack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/lintstack.py b/tools/lintstack.py index 71b565ee0..d5f19a08d 100755 --- a/tools/lintstack.py +++ b/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"]