diff options
| author | Chris McDonough <chrism@plope.com> | 2011-04-15 17:29:44 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-04-15 17:29:44 -0400 |
| commit | ff45087f121fc755871c09469acd34dce17ffbf8 (patch) | |
| tree | a6c2d65623a61f7095ed496fc07728c4f90c141f | |
| parent | 004e643fd80c0e4f3f562a5e7ed9ab8f5d324ddd (diff) | |
| download | pyramid-ff45087f121fc755871c09469acd34dce17ffbf8.tar.gz pyramid-ff45087f121fc755871c09469acd34dce17ffbf8.tar.bz2 pyramid-ff45087f121fc755871c09469acd34dce17ffbf8.zip | |
better docstring
| -rw-r--r-- | pyramid/encode.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/pyramid/encode.py b/pyramid/encode.py index e6c7a969b..9c3a8f7c7 100644 --- a/pyramid/encode.py +++ b/pyramid/encode.py @@ -9,9 +9,6 @@ _must_quote = {} def url_quote(s, safe=''): """quote('abc def') -> 'abc%20def' - Faster version of Python stdlib urllib.quote which also quotes - the '/' character. - Each part of a URL, e.g. the path info, the query, etc., has a different set of reserved characters that must be quoted. @@ -25,10 +22,10 @@ def url_quote(s, safe=''): but not necessarily in all of them. Unlike the default version of this function in the Python stdlib, - by default, the quote function is intended for quoting individual + by default, the url_quote function is intended for quoting individual path segments instead of an already composed path that might have '/' characters in it. Thus, it *will* encode any '/' character it - finds in a string. + finds in a string. It is also slightly faster than the stdlib version. """ cachekey = (safe, always_safe) try: |
