Remove six murano/hacking
Change-Id: I5b33362ccd7065c5c2890d1f1a2cb1082a29a8c2
This commit is contained in:
parent
f3f2a4019a
commit
070a4723be
|
@ -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)
|
||||
|
|
|
@ -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)"))))
|
||||
|
|
Loading…
Reference in New Issue