mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
minor, no cover for 3.x (2.6 only)
This commit is contained in:
parent
4a4780be04
commit
c9ba695ba3
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ class Utils():
|
|||
if len(cache) >= self.maxCount:
|
||||
if OrderedDict is not dict: # first (older):
|
||||
cache.popitem(False)
|
||||
else:
|
||||
else: # pragma: 3.x no cover
|
||||
cache.popitem()
|
||||
cache[k] = (v, t + self.maxTime)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue