CSV line recovery forces Windows line endings #1597
Labels
bug
Indicates an unexpected problem or unintended behavior
component: core
help wanted
Indicates that a maintainer wants help on an issue or pull request
The
recover_line_csv()
function is joining data with\r\n
, redgardless of the source file newlines:intelmq/intelmq/lib/bot.py
Line 1042 in a2d20df
This means that bot test are failing even though the parsing succeeded, because the
raw
values do not match: there is a new CR byte. As a workaround, bot tests are replacing newlines in their test files to account for that, which is not ideal solution.intelmq/intelmq/tests/bots/parsers/generic/test_parser_csv_data_type.py
Line 20 in f7a5c7a
The text was updated successfully, but these errors were encountered: