fork download
  1. from wsgiref.simple_server import make_server, demo_app
  2.  
  3. with make_server('', 8000, demo_app) as httpd:
  4. print("Serving HTTP on port 8000...")
  5.  
  6. # Respond to requests until process is killed
  7. httpd.serve_forever()
Runtime error #stdin #stdout #stderr 0.06s 59696KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 3, in <module>
AttributeError: __exit__