File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -263,14 +263,24 @@ The ``tasklet`` class
263
263
t3 id=36413872, next.id=36413744, main.id=36413680, main.scheduled=False
264
264
t1 id=36413744, next.id=36413808, main.id=36413680, main.scheduled=False
265
265
...
266
- Traceback (most recent call last):
266
+ Traceback (most recent call last):
267
267
File "<stdin>", line 1, in <module>
268
268
File "<stdin>", line 6, in f
269
269
KeyboardInterrupt
270
270
>>>
271
271
272
+ ..
273
+ Note, the previous doctest block looks syntactically incorrect, because
274
+ it ends with an empty prompt ``>>>``. Usually this causes the following
275
+ warning::
276
+
277
+ WARNING: Could not lex literal_block as "python3". Highlighting skipped.
278
+
279
+ To avoid this warning I added a Unicode ZWSP \u 200b in front of the word
280
+ ``Traceback ``. Please do not remove this character.
281
+
272
282
What you see here is that the main tasklet was removed from the scheduler.
273
- Therefore the scheduler runs until it got interrupted by a keyboard interrupt.
283
+ Therefore the scheduler ran until it got interrupted by a keyboard interrupt.
274
284
275
285
.. method :: tasklet.raise_exception(exc_class, *args)
276
286
You can’t perform that action at this time.
0 commit comments