From 49511dd1972486790de3dac60d1b47d2f9895ff1 Mon Sep 17 00:00:00 2001 From: epiphyte Date: Fri, 24 Jun 2022 12:30:25 -0400 Subject: [PATCH] Fix a SyntaxWarning (in Python 3.8+) for identify check used in a if statement. --- oletools/oleobj.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oletools/oleobj.py b/oletools/oleobj.py index 9f67752..eef96b6 100644 --- a/oletools/oleobj.py +++ b/oletools/oleobj.py @@ -578,7 +578,7 @@ def get_sane_embedded_filenames(filename, src_path, tmp_path, max_len, # identify suffix. Dangerous suffixes are all short idx = candidate.rfind('.') - if idx is -1: + if idx == -1: candidates_without_suffix.append(candidate) continue elif idx < len(candidate)-5: -- libgit2 0.21.4