diff options
| author | Bernhard M. Wiedemann <bernhard+hgcommit@lsmod.de> | 2018-02-21 10:25:37 +0100 |
|---|---|---|
| committer | Bernhard M. Wiedemann <bernhard+hgcommit@lsmod.de> | 2018-02-21 10:25:37 +0100 |
| commit | aca5f3fb0fbc754d2dd8e676dc640f1432a164bd (patch) | |
| tree | 8fbeda74980baf7acd06c5b1f792a3c218eaa1ff /tests/urlparser_data/hook/index.py | |
| download | paste-git-aca5f3fb0fbc754d2dd8e676dc640f1432a164bd.tar.gz | |
make tests pass after 2031
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] + |
