From 61c7a2190509a2220055e372dbc5c1306547cd44 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 29 Mar 2015 01:19:22 +0200 Subject: [PATCH] cgi: Cannot override sys.stderr in MicroPython. --- cgi/cgi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgi/cgi.py b/cgi/cgi.py index 06e03b58..dbe44cc8 100644 --- a/cgi/cgi.py +++ b/cgi/cgi.py @@ -881,7 +881,7 @@ def test(environ=os.environ): """ print("Content-type: text/html") print() - sys.stderr = sys.stdout + #sys.stderr = sys.stdout try: form = FieldStorage() # Replace with other classes to test those print_directory()