Skip to content

Commit

Permalink
don't remove \x7f but convert to newline
Browse files Browse the repository at this point in the history
  • Loading branch information
ccomb committed Aug 2, 2024
1 parent 0f44ab6 commit 5ef23a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bw2io/extractors/simapro_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def to_number(obj):

# \x7f if ascii delete - where does it come from?
strip_whitespace_and_delete = lambda obj: (
obj.replace("\x7f", "").strip() if isinstance(obj, str) else obj
obj.replace("\x7f", "\n").strip() if isinstance(obj, str) else obj
)

uppercase_expression = (
Expand Down

0 comments on commit 5ef23a3

Please sign in to comment.