Chris McDonough
2011-09-12 de774b2f67112f52222903053e95ded11522ec71
update docstring
1 files modified
17 ■■■■ changed files
pyramid/encode.py 17 ●●●● patch | view | raw | blame | history
pyramid/encode.py
@@ -13,19 +13,20 @@
    different set of reserved characters that must be quoted.
    RFC 2396 Uniform Resource Identifiers (URI): Generic Syntax lists
    the following reserved characters.
    the following reserved characters::
    reserved    = ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" |
                  "$" | ","
     reserved    = ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" |
                   "$" | ","
    Each of these characters is reserved in some component of a URL,
    but not necessarily in all of them.
    Unlike the default version of this function in the Python stdlib,
    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.  It is also slightly faster than the stdlib version.
    Unlike the default version of this function in the Python stdlib, 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 unless ``/`` is marked as 'safe'.  It is also slightly faster than
    the stdlib version.
    """
    cachekey = (safe, always_safe)
    try: