We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f163a77 commit 8dfccf4Copy full SHA for 8dfccf4
src/attributecode/util.py
@@ -259,16 +259,14 @@ def load_csv(location):
259
for each row.
260
"""
261
results = []
262
- # FIXME: why ignore encoding errors here?
263
with codecs.open(location, mode='rb', encoding='utf-8-sig',
264
- errors='ignore') as csvfile:
+ errors='replace') as csvfile:
265
for row in csv.DictReader(csvfile):
266
# convert all the column keys to lower case
267
updated_row = {key.lower(): value for key, value in row.items()}
268
results.append(updated_row)
269
return results
270
271
-
272
def load_json(location):
273
274
Read JSON file at `location` and return a list of ordered dicts, one for
0 commit comments