mirror of https://github.com/fail2ban/fail2ban
minor, no cover for 3.x (2.6 only)
parent
4a4780be04
commit
c9ba695ba3
|
@ -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 New Issue