From 849fca4c38ef144a7c5cee73d4326dee45561ffc Mon Sep 17 00:00:00 2001 From: kgriffs Date: Wed, 28 Aug 2013 15:56:40 -0500 Subject: [PATCH] doc(Api._get_responder): Updated docstring to be more accurate Previously, "Returns" talked about a 2-member tuple, but the method was changed somewhere along the way to return a 3-member tuple, and this patch updates the docstring accordingly. --- falcon/api.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/falcon/api.py b/falcon/api.py index 2ba12fd..695acfc 100644 --- a/falcon/api.py +++ b/falcon/api.py @@ -239,10 +239,12 @@ class API(object): Args: path: URI path to search (without query string) method: HTTP method (uppercase) requested + Returns: - A 2-member tuple, containing a responder callable and a dict - containing parsed path fields, if any were specified in - the matching route's URI template + A 3-member tuple, containing a responder callable, a dict + containing parsed path fields (if any were specified in + the matching route's URI template), and a reference to + the "method not allowed" responder for the resource. """