diff options
author | wangzihao <wangzihao@yovole.com> | 2020-10-16 10:40:22 +0800 |
---|---|---|
committer | wangzihao <wangzihao@yovole.com> | 2020-10-16 10:40:22 +0800 |
commit | e9541846936cec27b70f3975eba837cf938af21d (patch) | |
tree | 5f707da6fc9f7e61eeb888d1353116d464446b17 /trove/hacking | |
parent | 9e2515aad353c0ad6ced3558c6cc0fcd6d478fff (diff) | |
download | trove-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 'trove/hacking')
-rw-r--r-- | trove/hacking/checks.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/trove/hacking/checks.py b/trove/hacking/checks.py index 851ddd66..a00a2814 100644 --- a/trove/hacking/checks.py +++ b/trove/hacking/checks.py @@ -59,18 +59,6 @@ def check_raised_localized_exceptions(logical_line, filename): @core.flake8ext -def check_no_basestring(logical_line): - """T104 - Don't use basestring, use six.string_types instead - basestring is not supported by py3, using six.string_types to ensure - py3 and py2 compatibility - """ - if re.search(r"\, basestring\)", logical_line): - msg = ("T104: basestring is not Python3-compatible, use " - "six.string_types instead.") - yield(0, msg) - - -@core.flake8ext def no_translate_logs(physical_line, logical_line, filename): """T105 - Log messages shouldn't be translated from the Pike release. |