From 92f4c53729e8978acffb18bdf0c82df911b3d849 Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Wed, 25 May 2022 12:51:09 +0200 Subject: [PATCH] Fix olevba for py2.7 Arg "keepends" is a non-keyword-arg in python 2.7 --- oletools/olevba.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oletools/olevba.py b/oletools/olevba.py index 5620f8df..2854afc3 100644 --- a/oletools/olevba.py +++ b/oletools/olevba.py @@ -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';'):