Mercurial > hg > index.fcgi > www > www-1
diff myrss2/myrss_test_server.py @ 110:1a5c0fc5627a
myrss2: fix gzip and leading whitespace handling; add test feed, test server; update FEEDS
author | paulo |
---|---|
date | Wed, 03 Jun 2020 01:20:20 -0700 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/myrss2/myrss_test_server.py Wed Jun 03 01:20:20 2020 -0700 1.3 @@ -0,0 +1,9 @@ 1.4 +import wsgiref.simple_server 1.5 +import socketserver 1.6 + 1.7 +import myrss_app 1.8 + 1.9 + 1.10 +if __name__ == "__main__": 1.11 + with wsgiref.simple_server.make_server('', 8000, myrss_app.MyRssApp()) as httpd: 1.12 + httpd.serve_forever()