From e0beab38d8b5179ec6954b4e13420c5247f42362 Mon Sep 17 00:00:00 2001 From: nkartyshov Date: Wed, 27 Jul 2016 13:22:40 +0300 Subject: [PATCH] Removed the addition of \n to file --- Filters/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Filters/parser.py b/Filters/parser.py index 69a95244..445b9dff 100644 --- a/Filters/parser.py +++ b/Filters/parser.py @@ -30,7 +30,7 @@ def save_file_rule(line, f): file_name = line.replace('file', '').strip() with open(file_name, 'r') as rf: for rule in rf: - f.writelines(rule + '\n') + f.writelines(rule) with open('filter.template', 'r') as tmpl: with open('filter.txt', 'w') as f: