Skip to content

Commit 9dfee86

Browse files
committed
testing fixes for PyCQA#1003, modified to not cause any potential errors
1 parent cd72d14 commit 9dfee86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bandit/core/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ def check_ast_node(name):
373373

374374

375375
def get_nosec(nosec_lines, context):
376-
for lineno in [context["lineno"], *context["linerange"]]:
376+
for lineno in [context["lineno"]] + context["linerange"]:
377377
nosec = nosec_lines.get(lineno)
378378
if nosec is not None:
379379
return nosec

0 commit comments

Comments
 (0)