master
Bob Mottram 2019-07-14 22:00:33 +01:00
parent 887552f5c5
commit 014ed66dc2
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ def removeFilter(baseDir: str,nickname: str,domain: str, \
with open(filtersFilename+'.new', 'w') as fpnew:
for line in fp:
line=line.replace('\n','')
if words not in line:
if line!=words:
fpnew.write(line+'\n')
if os.path.isfile(filtersFilename+'.new'):
os.rename(filtersFilename+'.new',filtersFilename)