Browse Source

DOC: Neaten format for fail2ban-regex maxlines print

pull/277/head
Steven Hiscocks 12 years ago
parent
commit
88bee24edb
  1. 3
      bin/fail2ban-regex

3
bin/fail2ban-regex

@ -234,7 +234,8 @@ class Fail2banRegex(object):
else: else:
try: try:
self.setMaxLines(maxlines) self.setMaxLines(maxlines)
print "Use maxlines : %d" % self._filter.getMaxLines() print "Use maxlines : %d" % (
self._filter.getMaxLines(), )
except ValueError: except ValueError:
print "ERROR: Invalid value for maxlines (%(maxlines)r) " \ print "ERROR: Invalid value for maxlines (%(maxlines)r) " \
"read from %(value)s" % locals() "read from %(value)s" % locals()

Loading…
Cancel
Save