Commit 49511dd1972486790de3dac60d1b47d2f9895ff1
1 parent
f2cbbbae
Fix a SyntaxWarning (in Python 3.8+) for identify check used in a if statement.
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 | 578 | |
| 579 | 579 | # identify suffix. Dangerous suffixes are all short |
| 580 | 580 | idx = candidate.rfind('.') |
| 581 | - if idx is -1: | |
| 581 | + if idx == -1: | |
| 582 | 582 | candidates_without_suffix.append(candidate) |
| 583 | 583 | continue |
| 584 | 584 | elif idx < len(candidate)-5: | ... | ... |