ENH: fail2ban-regex now uses iteraable for log file

Previosuly, the whole file was read in first
pull/303/merge
Steven Hiscocks 2013-07-27 11:36:01 +01:00
parent af46cd0e4f
commit 879c1a32f7
1 changed files with 1 additions and 1 deletions

View File

@ -377,7 +377,7 @@ if __name__ == "__main__":
try:
hdlr = open(cmd_log)
print "Use log file : %s" % cmd_log
test_lines = hdlr.readlines()
test_lines = hdlr # Iterable
except IOError, e:
print e
sys.exit(-1)