Remove six murano/hacking

Change-Id: I5b33362ccd7065c5c2890d1f1a2cb1082a29a8c2
This commit is contained in:
zhurong 2020-04-17 19:41:02 -07:00
parent f3f2a4019a
commit 070a4723be
2 changed files with 3 additions and 3 deletions

View File

@ -62,6 +62,6 @@ def no_mutable_default_args(logical_line):
@core.flake8ext
def check_no_basestring(logical_line):
if re.search(r"\bbasestring\b", logical_line):
msg = ("M326: basestring is not Python3-compatible, use "
"six.string_types instead.")
msg = ("M326: basestring is not Python3 usage, use "
"str instead.")
yield(0, msg)

View File

@ -103,4 +103,4 @@ class HackingTestCase(base.MuranoTestCase):
"isinstance('foo', basestring)"))))
self.assertEqual(0, len(list(checks.check_no_basestring(
"isinstance('foo', six.string_types)"))))
"isinstance('foo', str)"))))