Skip to content

Commit

Permalink
Fix olevba for py2.7
Browse files Browse the repository at this point in the history
Arg "keepends" is a non-keyword-arg in python 2.7
  • Loading branch information
christian-intra2net committed Jun 3, 2022
1 parent 4761dca commit 92f4c53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oletools/olevba.py
Original file line number Diff line number Diff line change
Expand Up @@ -3112,7 +3112,7 @@ def open_slk(self, data):
xlm_macro_found = False
xlm_macros = []
xlm_macros.append('Formulas and XLM/Excel 4 macros extracted from SLK file:')
for line in data.splitlines(keepends=False):
for line in data.splitlines(False):
if line.startswith(b'O'):
# Option: "O;E" indicates a macro sheet, must appear before NN and C rows
for s in line.split(b';'):
Expand Down

0 comments on commit 92f4c53

Please # to comment.