summaryrefslogtreecommitdiff
path: root/docs/narr/helloworld.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-10-06 03:22:35 -0400
committerChris McDonough <chrism@plope.com>2011-10-06 03:22:35 -0400
commitf8869cb0664506204b22aa791003a6d5f8ded58c (patch)
tree7fad521744fa2414252827646740d92f52454f9c /docs/narr/helloworld.py
parentcfb2b5596b8ef366aeef3bce5b61eafc7a2f175d (diff)
downloadpyramid-f8869cb0664506204b22aa791003a6d5f8ded58c.tar.gz
pyramid-f8869cb0664506204b22aa791003a6d5f8ded58c.tar.bz2
pyramid-f8869cb0664506204b22aa791003a6d5f8ded58c.zip
remove stray references to Paste
Diffstat (limited to 'docs/narr/helloworld.py')
-rw-r--r--docs/narr/helloworld.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/narr/helloworld.py b/docs/narr/helloworld.py
index 5f121d48d..93a403a13 100644
--- a/docs/narr/helloworld.py
+++ b/docs/narr/helloworld.py
@@ -1,4 +1,4 @@
-from paste.httpserver import serve
+from wsgiref.simple_server import make_server
from pyramid.config import Configurator
from pyramid.response import Response
@@ -10,4 +10,6 @@ if __name__ == '__main__':
config.add_route('hello', '/hello/{name}')
config.add_view(hello_world, route_name='hello')
app = config.make_wsgi_app()
- serve(app, host='0.0.0.0')
+ server = make_server('0.0.0.0', 8080)
+ server.serve_forever()
+