Removed the addition of \n to file

This commit is contained in:
nkartyshov 2016-07-27 13:22:40 +03:00
parent b3dfd69f49
commit e0beab38d8
1 changed files with 1 additions and 1 deletions

View File

@ -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: