[ast.Str] Use ast.Constant instead pending removal in python 3.14
This commit is contained in:
parent
0ded3297a9
commit
86fe5712ad
|
@ -680,7 +680,7 @@ class AssertionRewriter(ast.NodeVisitor):
|
||||||
if (
|
if (
|
||||||
expect_docstring
|
expect_docstring
|
||||||
and isinstance(item, ast.Expr)
|
and isinstance(item, ast.Expr)
|
||||||
and isinstance(item.value, ast.Str)
|
and isinstance(item.value, ast.Constant)
|
||||||
):
|
):
|
||||||
doc = item.value.s
|
doc = item.value.s
|
||||||
if self.is_rewrite_disabled(doc):
|
if self.is_rewrite_disabled(doc):
|
||||||
|
|
Loading…
Reference in New Issue