Marco Buttu added the comment: Going a bit OT, in the contextlib doc there are two examples that have both normal code and shell code in the same code block. In this way we loose the prompt syntax highlight, and the code block can also confuse the reader. In the patch attached the two examples are executed entirely in the shell, and both are under doctest.
---------- keywords: +patch nosy: +marco.buttu Added file: http://bugs.python.org/file46116/contextlib.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29134> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com