[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
fbfb4ebf58
commit
58521efcaa
|
@ -206,13 +206,13 @@ class Expression:
|
|||
:param input: The input expression - one line.
|
||||
"""
|
||||
astexpr = expression(Scanner(input))
|
||||
|
||||
|
||||
if mark:
|
||||
for node in ast.walk(astexpr):
|
||||
#if the node is an identifier, i.e. a mark name
|
||||
if isinstance(node, ast.Name):
|
||||
MARK_GEN.verify_mark(node.id[len(IDENT_PREFIX):])
|
||||
|
||||
# if the node is an identifier, i.e. a mark name
|
||||
if isinstance(node, ast.Name):
|
||||
MARK_GEN.verify_mark(node.id[len(IDENT_PREFIX) :])
|
||||
|
||||
code: types.CodeType = compile(
|
||||
astexpr,
|
||||
filename="<pytest match expression>",
|
||||
|
|
Loading…
Reference in New Issue