Test that top (current) level is of given state.
(self, state: Any)
| 65 | self.pop() |
| 66 | |
| 67 | def isstate(self, state: Any) -> bool: |
| 68 | """ Test that top (current) level is of given state. """ |
| 69 | if len(self): |
| 70 | return self[-1] == state |
| 71 | else: |
| 72 | return False |
| 73 | |
| 74 | |
| 75 | class BlockParser: |
no outgoing calls