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

def default_handlers ( handlers = [ ] ) : return ( handlers + [ ( '/gist/([^\\/]+/)?([0-9]+|[0-9a-f]{20,})' , GistHandler ) , ( '/gist/([^\\/]+/)?([0-9]+|[0-9a-f]{20,})/(?:files/)?(.*)' , GistHandler ) , ( '/([0-9]+|[0-9a-f]{20,})' , GistRedirectHandler ) , ( '/([0-9]+|[0-9a-f]{20,})/(.*)' , GistRedirectHandler ) , ( '/gist/([^\\/]+)/?' , UserGistsHandler ) ] )
tornado handlers .