diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/base_analyzer.py b/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/base_analyzer.py index cd9885dc..a95ca640 100644 --- a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/base_analyzer.py +++ b/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/base_analyzer.py @@ -205,11 +205,14 @@ def __init__( def _remove_empty_lines_from_csv(input_file): temp_file = input_file + ".temp" - with open( + with ( + open( input_file, "r", newline="", encoding=DataConstants.UTF8ENCODING - ) as infile, open( + ) as infile, + open( temp_file, "w", newline="", encoding=DataConstants.UTF8ENCODING - ) as outfile: + ) as outfile, + ): reader = csv.reader(infile) writer = csv.writer(outfile)