def default_handlers(handlers=[], **handler_names):
    'Tornado handlers'
    gist_handler = _load_handler_from_location(handler_names['gist_handler'])
    user_gists_handler = _load_handler_from_location(handler_names['user_gists_handler'])
    return (handlers + [('/gist/([^\\/]+/)?([0-9]+|[0-9a-f]{20,})', gist_handler, {}), ('/gist/([^\\/]+/)?([0-9]+|[0-9a-f]{20,})/(?:files/)?(.*)', gist_handler, {}), ('/([0-9]+|[0-9a-f]{20,})', GistRedirectHandler, {}), ('/([0-9]+|[0-9a-f]{20,})/(.*)', GistRedirectHandler, {}), ('/gist/([^\\/]+)/?', user_gists_handler, {})])
Tornado handlers
def default_handlers(handlers=[], **handler_names):
    
    gist_handler = _load_handler_from_location(handler_names['gist_handler'])
    user_gists_handler = _load_handler_from_location(handler_names['user_gists_handler'])
    return (handlers + [('/gist/([^\\/]+/)?([0-9]+|[0-9a-f]{20,})', gist_handler, {}), ('/gist/([^\\/]+/)?([0-9]+|[0-9a-f]{20,})/(?:files/)?(.*)', gist_handler, {}), ('/([0-9]+|[0-9a-f]{20,})', GistRedirectHandler, {}), ('/([0-9]+|[0-9a-f]{20,})/(.*)', GistRedirectHandler, {}), ('/gist/([^\\/]+)/?', user_gists_handler, {})])