Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Paste / tests / urlparser_data / not_found / recur / __init__.py
Size: Mime:
def not_found_hook(environ, start_response):
    urlparser = environ['paste.urlparser.not_found_parser']
    path = environ.get('PATH_INFO', '')
    if not path:
        return urlparser.not_found(environ, start_response)
    # Strip off leading _'s
    path = '/' + path.lstrip('/').lstrip('_')
    environ['PATH_INFO'] = path
    return urlparser(environ, start_response)