summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorŁukasz Fidosz <virhilo@gmail.com>2012-08-03 22:56:49 +0200
committerŁukasz Fidosz <virhilo@gmail.com>2012-08-03 22:56:49 +0200
commit4aeb44f1ea912c3c3611bc677f654602488fedb0 (patch)
tree9bb69d46692f73dfd007b7379195f663573a049b
parentaa62a18c7e5f39a42ca777c871cf7cf61ffd869b (diff)
downloadpyramid-4aeb44f1ea912c3c3611bc677f654602488fedb0.tar.gz
pyramid-4aeb44f1ea912c3c3611bc677f654602488fedb0.tar.bz2
pyramid-4aeb44f1ea912c3c3611bc677f654602488fedb0.zip
fixed indentation in narr/helloworld.py
-rw-r--r--docs/narr/helloworld.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/docs/narr/helloworld.py b/docs/narr/helloworld.py
index 7c26c8cdc..c01329af9 100644
--- a/docs/narr/helloworld.py
+++ b/docs/narr/helloworld.py
@@ -2,14 +2,15 @@ from wsgiref.simple_server import make_server
from pyramid.config import Configurator
from pyramid.response import Response
+
def hello_world(request):
- return Response('Hello %(name)s!' % request.matchdict)
+ return Response('Hello %(name)s!' % request.matchdict)
if __name__ == '__main__':
- config = Configurator()
- config.add_route('hello', '/hello/{name}')
- config.add_view(hello_world, route_name='hello')
- app = config.make_wsgi_app()
- server = make_server('0.0.0.0', 8080, app)
- server.serve_forever()
+ config = Configurator()
+ config.add_route('hello', '/hello/{name}')
+ config.add_view(hello_world, route_name='hello')
+ app = config.make_wsgi_app()
+ server = make_server('0.0.0.0', 8080, app)
+ server.serve_forever()