From 560b90324bdd98a82cfa8889ecdcdb99ca0236b1 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 --- oletools/olevba.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oletools/olevba.py b/oletools/olevba.py index 5620f8d..2854afc 100644 --- a/oletools/olevba.py +++ b/oletools/olevba.py @@ -3112,7 +3112,7 @@ class VBA_Parser(object): 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';'): -- libgit2 0.21.4