Commit 6c61acada99bba25a719bae872aed84bcd316487

Authored by Philippe Lagadec
Committed by GitHub
2 parents 943ee593 49511dd1

Merge pull request #774 from vertexproject/bug_syntax_warning

Fix a SyntaxWarning in Python 3.8+
Showing 1 changed file with 1 additions and 1 deletions
oletools/oleobj.py
@@ -578,7 +578,7 @@ def get_sane_embedded_filenames(filename, src_path, tmp_path, max_len, @@ -578,7 +578,7 @@ def get_sane_embedded_filenames(filename, src_path, tmp_path, max_len,
578 578
579 # identify suffix. Dangerous suffixes are all short 579 # identify suffix. Dangerous suffixes are all short
580 idx = candidate.rfind('.') 580 idx = candidate.rfind('.')
581 - if idx is -1: 581 + if idx == -1:
582 candidates_without_suffix.append(candidate) 582 candidates_without_suffix.append(candidate)
583 continue 583 continue
584 elif idx < len(candidate)-5: 584 elif idx < len(candidate)-5: