File: index.py

package info (click to toggle)
paste 2.0.3%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,396 kB
  • ctags: 2,615
  • sloc: python: 18,659; makefile: 17; sh: 7
file content (9 lines) | stat: -rw-r--r-- 232 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
import six

def application(environ, start_response):
    start_response('200 OK', [('Content-type', 'text/html')])
    body = 'index: %s' % environ['app.user']
    if six.PY3:
        body = body.encode('ascii')
    return [body]