diff options
author | Alex Gr?nholm <alex.gronholm@nextday.fi> | 2011-05-24 04:16:29 +0300 |
---|---|---|
committer | Alex Gr?nholm <alex.gronholm@nextday.fi> | 2011-05-24 04:16:29 +0300 |
commit | 38bfdb668650820c4b2fc281424efed49c15775a (patch) | |
tree | 78e936363fae436821889abbdd971a2488f8445f | |
parent | 066889b037866098e80e55ee5b7676a4220ffb28 (diff) | |
download | pastedeploy-38bfdb668650820c4b2fc281424efed49c15775a.tar.gz |
PEP 8 cleanups in templates
-rw-r--r-- | paste/deploy/paster_templates/paste_deploy/+package+/sampleapp.py_tmpl | 5 | ||||
-rw-r--r-- | paste/deploy/paster_templates/paste_deploy/+package+/wsgiapp.py_tmpl | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/paste/deploy/paster_templates/paste_deploy/+package+/sampleapp.py_tmpl b/paste/deploy/paster_templates/paste_deploy/+package+/sampleapp.py_tmpl index ae55f97..6df5a6e 100644 --- a/paste/deploy/paster_templates/paste_deploy/+package+/sampleapp.py_tmpl +++ b/paste/deploy/paster_templates/paste_deploy/+package+/sampleapp.py_tmpl @@ -1,6 +1,8 @@ import cgi + from paste.deploy import CONFIG + def application(environ, start_response): # Note that usually you wouldn't be writing a pure WSGI # application, you might be using some framework or @@ -19,5 +21,4 @@ def application(environ, start_response): % (key, cgi.escape(repr(value)))) content.append('</table></body></html>') return content - - +
\ No newline at end of file diff --git a/paste/deploy/paster_templates/paste_deploy/+package+/wsgiapp.py_tmpl b/paste/deploy/paster_templates/paste_deploy/+package+/wsgiapp.py_tmpl index 57155fc..97decb8 100644 --- a/paste/deploy/paster_templates/paste_deploy/+package+/wsgiapp.py_tmpl +++ b/paste/deploy/paster_templates/paste_deploy/+package+/wsgiapp.py_tmpl @@ -1,6 +1,8 @@ -import sampleapp from paste.deploy.config import ConfigMiddleware +import sampleapp + + def make_app( global_conf, # Optional and required configuration parameters @@ -20,4 +22,3 @@ def make_app( # configuration dictionary we set up: app = ConfigMiddleware(app, conf) return app - |