fix stack
This commit is contained in:
parent
5145c20156
commit
1b7e8b8147
@ -120,7 +120,7 @@ class Stack:
|
|||||||
b, c = a, b
|
b, c = a, b
|
||||||
if c:
|
if c:
|
||||||
c.next = None
|
c.next = None
|
||||||
if b == self.top:
|
if b is self.top:
|
||||||
self.top = None
|
self.top = None
|
||||||
return b
|
return b
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user