"""Share utility functions."""

from urllib import parse


def get_route_value(environ, name):
    value = environ['wsgiorg.routing_args'][1][name]
    value = parse.unquote(value)
    return value.replace('%2F', '/')

"""Share utility functions."""

try:
    from urllib import parse
except ImportError:
    import urllib as parse



def get_route_value(environ, name):
    value = environ['wsgiorg.routing_args'][1][name]
    value = parse.unquote(value)
    return value.replace('%2F', '/')

Make it work for Python 2
Make it work for Python 2

Gabbi is designed to work with both Python 2.7 and 3.4.
