Skip to content

Commit

Permalink
Fix a SyntaxWarning (in Python 3.8+) for identify check used in a if …
Browse files Browse the repository at this point in the history
…statement.
  • Loading branch information
vEpiphyte committed Jun 24, 2022
1 parent f2cbbba commit 49511dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oletools/oleobj.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 49511dd

Please sign in to comment.