Skip to content

Commit 87da4ed

Browse files
pre-commit-ci[bot]Akindotcome
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7d3e3c7 commit 87da4ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bandit/formatters/sarif.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ def _make_partial_fingerprint(
371371
Deterministic fingerprint per (file, rule, representative line).
372372
Helps SARIF consumers dedupe findings across refactors.
373373
"""
374-
data = f"{filename}|{test_id}|{code_line}".encode("utf-8", errors="ignore")
374+
data = f"{filename}|{test_id}|{code_line}".encode()
375375
return hashlib.sha256(data).hexdigest()[:64]
376376

377377

0 commit comments

Comments
 (0)