summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorwangzihao <wangzihao@yovole.com>2020-10-16 10:40:22 +0800
committerwangzihao <wangzihao@yovole.com>2020-10-16 10:40:22 +0800
commite9541846936cec27b70f3975eba837cf938af21d (patch)
tree5f707da6fc9f7e61eeb888d1353116d464446b17 /tools
parent9e2515aad353c0ad6ced3558c6cc0fcd6d478fff (diff)
downloadtrove-e9541846936cec27b70f3975eba837cf938af21d.tar.gz
Remove six usage and basestring check
Remove basestring check. Remove six Replace the following items with Python 3 style code. - six.string_types - six.int2byte - six.indexbytes - six.add_metaclass - six.StringIO - six.text_type - six.integer_types - six.binary_type - six.BytesIO - six.reraise Change-Id: I4fb9033d152963c504ceb4d5c4d08f934ee4accb
Diffstat (limited to 'tools')
-rwxr-xr-xtools/trove-pylint.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/trove-pylint.py b/tools/trove-pylint.py
index 088203c2..f705051d 100755
--- a/tools/trove-pylint.py
+++ b/tools/trove-pylint.py
@@ -18,7 +18,6 @@ from collections import OrderedDict
import io
import os
import re
-import six
import sys
from pylint import lint
@@ -60,8 +59,7 @@ class Config(object):
sorted_config = OrderedDict()
for key in sorted(self.config.keys()):
value = self.get(key)
- if isinstance(value, list) and not isinstance(value,
- six.string_types):
+ if isinstance(value, list) and not isinstance(value,str):
sorted_config[key] = sorted(value)
else:
sorted_config[key] = value