Commit 560b90324bdd98a82cfa8889ecdcdb99ca0236b1

Authored by Christian Herdtweck
1 parent 669d001f

Fix olevba for py2.7

Arg "keepends" is a non-keyword-arg in python 2.7
Showing 1 changed file with 1 additions and 1 deletions
oletools/olevba.py
@@ -3112,7 +3112,7 @@ class VBA_Parser(object): @@ -3112,7 +3112,7 @@ class VBA_Parser(object):
3112 xlm_macro_found = False 3112 xlm_macro_found = False
3113 xlm_macros = [] 3113 xlm_macros = []
3114 xlm_macros.append('Formulas and XLM/Excel 4 macros extracted from SLK file:') 3114 xlm_macros.append('Formulas and XLM/Excel 4 macros extracted from SLK file:')
3115 - for line in data.splitlines(keepends=False): 3115 + for line in data.splitlines(False):
3116 if line.startswith(b'O'): 3116 if line.startswith(b'O'):
3117 # Option: "O;E" indicates a macro sheet, must appear before NN and C rows 3117 # Option: "O;E" indicates a macro sheet, must appear before NN and C rows
3118 for s in line.split(b';'): 3118 for s in line.split(b';'):