Home | History | Annotate | Download | only in python2.7

Lines Matching refs:stack

151     stack = [] # stack of (class, indent) pairs
159 while stack and stack[-1][1] >= thisindent:
160 del stack[-1]
164 while stack and stack[-1][1] >= thisindent:
165 del stack[-1]
169 if stack:
170 cur_class = stack[-1][0]
179 stack.append((None, thisindent)) # Marker for nested fns
183 while stack and stack[-1][1] >= thisindent:
184 del stack[-1]
232 if not stack:
234 stack.append((cur_class, thisindent))