From f8d20a2deb08a83674f72a58301733a9a3faa1b4 Mon Sep 17 00:00:00 2001 From: "Geoffrey T. Dairiki" Date: Mon, 9 May 2011 09:25:01 -0700 Subject: fixes trivial doc typos --- pyramid/traversal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyramid/traversal.py b/pyramid/traversal.py index 48f8017f6..73f994bda 100644 --- a/pyramid/traversal.py +++ b/pyramid/traversal.py @@ -333,14 +333,14 @@ def resource_path_tuple(resource, *elements): ``elements`` will be appended as elements in the tuple representing the resource path. For instance, if the resource's path is ``('', 'foo', 'bar')`` and elements equals ``('a', 'b')``, - the returned tuple will be ``('', 'foo', 'bar', 'a', b')``. The + the returned tuple will be ``('', 'foo', 'bar', 'a', 'b')``. The first element of this tuple will always be the empty string (a leading empty string element in a path tuple represents that the path is absolute). This function is a logical inverse of :func:`pyramid.traversal.find_resource`: it can be used to - generate path references that can later be resolved that function. + generate path references that can later be resolved by that function. The ``resource`` passed in *must* be :term:`location`-aware. -- cgit v1.2.3