mitsuhiko/werkzeug — pull request #156 by najeira (2012-01-21 14:01:12+00:00)
Title: Restore sys.stdout after eval

`debug.console.ThreadedStream` overwrite `sys.stdout`.
But it would not be restored to original `sys.stdout`.
`sys.stdout` shold be restored.

I wrote patch to restore `sys.stdout`.
The restoring code append to `debug.console.Console.evel`.
Because that method call runsource, runsource call ThreadedStream.push.

Google App Engine SDK's server use `sys.stdout` to response.
This patch to enable debugging on Google App Engine SDK.
And other servers may be got this benefit.