Michael Merickel
2016-11-16 5aa648aedd1a76b00dd108f2bf00b7540d1cde97
fix docstring on check_csrf_token
1 files modified
6 ■■■■ changed files
pyramid/session.py 6 ●●●● patch | view | raw | blame | history
pyramid/session.py
@@ -116,9 +116,9 @@
    supplied by ``request.session.get_csrf_token()``, and ``raises`` is
    ``True``, this function will raise an
    :exc:`pyramid.exceptions.BadCSRFToken` exception.
    If the check does succeed and ``raises`` is ``False``, this
    function will return ``False``.  If the CSRF check is successful, this
    function will return ``True`` unconditionally.
    If the values differ and ``raises`` is ``False``, this function will
    return ``False``.  If the CSRF check is successful, this function will
    return ``True`` unconditionally.
    Note that using this function requires that a :term:`session factory` is
    configured.