Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nmota opened this issue Apr 12, 2018 · 0 comments
Open

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

nmota opened this issue Apr 12, 2018 · 0 comments

Comments

@nmota
Copy link

nmota commented Apr 12, 2018

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.

nmota added a commit to nmota/datapaka that referenced this issue Apr 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant