diff options
author | Marc Abramowitz <marc@marc-abramowitz.com> | 2016-03-07 14:05:52 -0800 |
---|---|---|
committer | Marc Abramowitz <marc@marc-abramowitz.com> | 2016-03-07 14:05:52 -0800 |
commit | 42b22881290e00e06b840dee1e42f0f5ef044d47 (patch) | |
tree | b4fef928625acd3e8ee45ccaa8c7a6c9810b3601 /tests/urlparser_data/hook/index.py | |
download | paste-git-tox_add_py35.tar.gz |
tox.ini: Add py35 to envlisttox_add_py35
Diffstat (limited to 'tests/urlparser_data/hook/index.py')
-rw-r--r-- | tests/urlparser_data/hook/index.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/urlparser_data/hook/index.py b/tests/urlparser_data/hook/index.py new file mode 100644 index 0000000..92f3d66 --- /dev/null +++ b/tests/urlparser_data/hook/index.py @@ -0,0 +1,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] + |