mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
code review
This commit is contained in:
parent
3c70fe298a
commit
fffeb7785c
1 changed files with 2 additions and 2 deletions
|
|
@ -24,7 +24,7 @@ __author__ = "Cyril Jaquier"
|
|||
__copyright__ = "Copyright (c) 2004 Cyril Jaquier"
|
||||
__license__ = "GPL"
|
||||
|
||||
from .configreader import ConfigReader, NoSectionError
|
||||
from .configreader import ConfigReader
|
||||
from ..helpers import getLogger, str2LogLevel
|
||||
|
||||
# Gets the instance of the logger.
|
||||
|
|
@ -63,7 +63,7 @@ class Fail2banReader(ConfigReader):
|
|||
# thread options:
|
||||
opts = [["int", "stacksize", ],
|
||||
]
|
||||
if ConfigReader.has_section(self, "Thread"):
|
||||
if self.has_section("Thread"):
|
||||
thopt = ConfigReader.getOptions(self, "Thread", opts)
|
||||
if thopt:
|
||||
self.__opts['thread'] = thopt
|
||||
|
|
|
|||
Loading…
Reference in a new issue