Skip to content

olevba: splitlines error on Python 2 when parsing SLK files #797

@decalage2

Description

@decalage2

str.splitlines() takes one argument keepends: it is a keyword argument in Python 3, but it is only positional in Python 2.
The following line in open_slk triggers an error with Python 2:

for line in data.splitlines(keepends=False):

The bug is fixed in PR #769

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions