Skip to content

Commit

Permalink
Merge pull request #774 from vertexproject/bug_syntax_warning
Browse files Browse the repository at this point in the history
Fix a SyntaxWarning in Python 3.8+
  • Loading branch information
decalage2 authored Jan 6, 2023
2 parents 943ee59 + 49511dd commit 6c61aca
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 6c61aca

Please sign in to comment.