Michael Merickel
2016-11-16 9cf3890534e7ae96ddc91cd53250766b5b7b8f89
fix docstring on check_csrf_token
1 files modified
6 ■■■■ changed files
pyramid/session.py 6 ●●●● patch | view | raw | blame | history
pyramid/session.py
@@ -215,9 +215,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.