diff options
author | wangzihao <wangzihao@yovole.com> | 2020-10-09 18:01:09 +0800 |
---|---|---|
committer | wangzihao <wangzihao@yovole.com> | 2020-10-09 18:08:32 +0800 |
commit | 91ba6d1d7cffea2c97259f7abf044d00cffbccb9 (patch) | |
tree | 2032f119fb59798a956bdb175e836a61a0cbf3be /tools | |
parent | c1be8a41d984aa88addfeaea2dc3c2392bfa2dcd (diff) | |
download | trove-91ba6d1d7cffea2c97259f7abf044d00cffbccb9.tar.gz |
Remove six.moves
Remove six.moves Replace the following items with Python 3 style code.
- six.moves.urllib
- six.moves.http_client
- six.moves.configparser
- six.moves.cStringIO
Change-Id: I004b6b9a81079c67451395bfe31ec75d58802c16
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/trove-pylint.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/trove-pylint.py b/tools/trove-pylint.py index fa8a5d97..088203c2 100755 --- a/tools/trove-pylint.py +++ b/tools/trove-pylint.py @@ -15,6 +15,7 @@ import fnmatch import json from collections import OrderedDict +import io import os import re import six @@ -22,7 +23,6 @@ import sys from pylint import lint from pylint.reporters import text -from six.moves import cStringIO as csio DEFAULT_CONFIG_FILE = "tools/trove-pylint.config" DEFAULT_IGNORED_FILES = ['trove/tests'] @@ -210,7 +210,7 @@ class LintRunner(object): def dolint(self, filename): exceptions = set() - buffer = csio() + buffer = io.StringIO() reporter = ParseableTextReporter(output=buffer) options = list(self.config.get('options')) options.append(filename) |