Show More
@@ -173,31 +173,25 b' In [24]: %tb' | |||
|
173 | 173 | SystemExit Traceback (most recent call last) |
|
174 | 174 | <BLANKLINE> |
|
175 | 175 | ... in <module> |
|
176 | 29 except IndexError: | |
|
176 | 177 | 30 mode = 'div' |
|
177 | 31 | |
|
178 | 178 | ---> 32 bar(mode) |
|
179 | global bar = <function bar at ...> | |
|
180 | global mode = 'exit' | |
|
179 | mode = 'exit' | |
|
181 | 180 | <BLANKLINE> |
|
182 | 181 | ... in bar(mode='exit') |
|
183 | 182 | 20 except: |
|
184 | 183 | 21 stat = 1 |
|
185 | 184 | ---> 22 sysexit(stat, mode) |
|
186 | global sysexit = <function sysexit at ...> | |
|
187 | stat = 2 | |
|
188 | 185 | mode = 'exit' |
|
186 | stat = 2 | |
|
189 | 187 | 23 else: |
|
190 | 188 | 24 raise ValueError('Unknown mode') |
|
191 | 189 | <BLANKLINE> |
|
192 | 190 | ... in sysexit(stat=2, mode='exit') |
|
193 | 9 | |
|
194 | 191 | 10 def sysexit(stat, mode): |
|
195 | 192 | ---> 11 raise SystemExit(stat, 'Mode = %s' % mode) |
|
196 | global SystemExit = undefined | |
|
197 | 193 | stat = 2 |
|
198 | 194 | mode = 'exit' |
|
199 | 12 | |
|
200 | 13 def bar(mode): | |
|
201 | 195 | <BLANKLINE> |
|
202 | 196 | SystemExit: (2, 'Mode = exit') |
|
203 | 197 | """ |
General Comments 0
You need to be logged in to leave comments.
Login now