Skip to content

Commit c9a3388

Browse files
authored
Added nosec comment for pickle (#3667)
1 parent ade4535 commit c9a3388

File tree

1 file changed

+1
-1
lines changed
  • tools/accuracy_checker/openvino/tools/accuracy_checker/annotation_converters

1 file changed

+1
-1
lines changed

tools/accuracy_checker/openvino/tools/accuracy_checker/annotation_converters/im2latex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def read_vocab(vocab_path):
3636
"""
3737
if vocab_path.suffix == '.pkl':
3838
with open(vocab_path, "rb") as f:
39-
vocab_dict = pkl.load(f)
39+
vocab_dict = pkl.load(f) # nosec - disable B301: pickle load check
4040
elif vocab_path.suffix == '.json':
4141
with open(vocab_path, "r", encoding='UTF-8') as f:
4242
vocab_dict = json.load(f)

0 commit comments

Comments
 (0)