diff options
Diffstat (limited to 'tests/urlparser_data/hook/index.py')
-rw-r--r-- | tests/urlparser_data/hook/index.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/urlparser_data/hook/index.py b/tests/urlparser_data/hook/index.py index 49e89f0..92f3d66 100644 --- a/tests/urlparser_data/hook/index.py +++ b/tests/urlparser_data/hook/index.py @@ -1,4 +1,9 @@ +import six + def application(environ, start_response): start_response('200 OK', [('Content-type', 'text/html')]) - return ['index: %s' % environ['app.user']] + body = 'index: %s' % environ['app.user'] + if six.PY3: + body = body.encode('ascii') + return [body] |