centraldedados / datapaka

An easy interface for documenting data packages
GNU General Public License v3.0
19 stars 3 forks source link

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

Open nmota opened 6 years ago

nmota commented 6 years ago

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.