Use dict literals (#33658)
This commit is contained in:
parent
541e30d155
commit
0d95eff21d
22 changed files with 33 additions and 33 deletions
|
@ -108,7 +108,7 @@ class BanLogParser:
|
|||
"""Initialize the parser."""
|
||||
self.log_file = log_file
|
||||
self.data = list()
|
||||
self.ip_regex = dict()
|
||||
self.ip_regex = {}
|
||||
|
||||
def read_log(self, jail):
|
||||
"""Read the fail2ban log and find entries for jail."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue