fix stack
This commit is contained in:
parent
5145c20156
commit
1b7e8b8147
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user