fix stack

This commit is contained in:
Dmitry Belyaev 2024-04-22 11:45:32 +03:00
parent 5145c20156
commit 1b7e8b8147

View File

@ -120,7 +120,7 @@ class Stack:
b, c = a, b
if c:
c.next = None
if b == self.top:
if b is self.top:
self.top = None
return b