[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.
|
:param input: The input expression - one line.
|
||||||
"""
|
"""
|
||||||
astexpr = expression(Scanner(input))
|
astexpr = expression(Scanner(input))
|
||||||
|
|
||||||
if mark:
|
if mark:
|
||||||
for node in ast.walk(astexpr):
|
for node in ast.walk(astexpr):
|
||||||
#if the node is an identifier, i.e. a mark name
|
# if the node is an identifier, i.e. a mark name
|
||||||
if isinstance(node, ast.Name):
|
if isinstance(node, ast.Name):
|
||||||
MARK_GEN.verify_mark(node.id[len(IDENT_PREFIX):])
|
MARK_GEN.verify_mark(node.id[len(IDENT_PREFIX) :])
|
||||||
|
|
||||||
code: types.CodeType = compile(
|
code: types.CodeType = compile(
|
||||||
astexpr,
|
astexpr,
|
||||||
filename="<pytest match expression>",
|
filename="<pytest match expression>",
|
||||||
|
|
Loading…
Reference in New Issue