fixed a mistake in the TTLStack class

This commit is contained in:
nocturn9x 2020-05-31 16:45:20 +02:00
parent 4b9c6f41e4
commit 2f4b6f11de
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ class TTLStack:
self.timer = timer
self.ttl = ttl
self.size = size
self.size = size if size else math.inf
self._stack = deque()
def push(self, element, ttl: int = 0):