Skip to content

rstrip() and split() expect "binary strings" as arguments #9

@nmota

Description

@nmota

When trying to use datapaka an error is given because the csv file is open as 'rb' and then in this line:
headers = [s.decode("utf-8") for s in f.readline().rstrip('\n').split(',')]
split() and rstrip() are used with string literals as arguments instead of its binary representations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions