Commits

Andriy Kornatskyy committed a9134e2

Removed unused imports from demos.

  • Participants
  • Parent commits ec26fe0

Comments (0)

Files changed (3)

demos/guestbook/guestbook.py

 from datetime import datetime
 
 from wheezy.core.collections import last_item_adapter
-from wheezy.core.config import Config
 
-from wheezy.http import HTTPRequest
 from wheezy.http import HTTPResponse
 from wheezy.http import WSGIApplication
 from wheezy.http import bootstrap_http_defaults
-from wheezy.http import config
 from wheezy.http import not_found
 from wheezy.http import redirect
 

demos/hello/helloworld.py

 """ ``helloworld`` module.
 """
 
-from wheezy.http import HTTPRequest
 from wheezy.http import HTTPResponse
 from wheezy.http import WSGIApplication
 from wheezy.http import bootstrap_http_defaults
 
 .. literalinclude:: ../demos/hello/helloworld.py
    :lines: 5-
-   
+
 Let have a look through each line in this application.
 
 Request Handler
 First of all let take a look what is request handler:
 
 .. literalinclude:: ../demos/hello/helloworld.py
-   :lines: 12-15
+   :lines: 11-14
 
 It is a simple callable of form::
 
     def handler(request):
         return response
-      
-In :ref:`wheezy.http` there is no dependencies between 
+
+In :ref:`wheezy.http` there is no dependencies between
 :py:class:`~wheezy.http.request.HTTPRequest` and
 :py:class:`~wheezy.http.response.HTTPResponse`.
 
-While :ref:`wheezy.http` doesn't prescribe what is router, we add 
+While :ref:`wheezy.http` doesn't prescribe what is router, we add
 here a simple router middleware. This way you can use one of available
-alternatives to provide route matching for your application. 
+alternatives to provide route matching for your application.
 
 .. literalinclude:: ../demos/hello/helloworld.py
-   :lines: 18-24
+   :lines: 17-23
 
-There is a  separate python package `wheezy.routing`_ that is recommended 
+There is a  separate python package `wheezy.routing`_ that is recommended
 way to add routing facility to your application.
 
-Finally we create entry point that is an instance of 
+Finally we create entry point that is an instance of
 :py:class:`~wheezy.http.application.WSGIApplication`.
 
 .. literalinclude:: ../demos/hello/helloworld.py
-   :lines: 27-31
-   
+   :lines: 26-30
+
 The rest in the ``helloworld`` application launch a simple wsgi server.
 Try it by running::