mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
test-cases: be sure the test-files always written with new-line at end
This commit is contained in:
parent
4108e04ab4
commit
89c611064d
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ def _out_file(fn, handle=logSys.debug):
|
|||
|
||||
def _write_file(fn, mode, *lines):
|
||||
f = open(fn, mode)
|
||||
f.write('\n'.join(lines))
|
||||
f.write('\n'.join(lines)+('\n' if lines else ''))
|
||||
f.close()
|
||||
|
||||
def _read_file(fn):
|
||||
|
|
|
|||
Loading…
Reference in a new issue