From b040ac06ebba2348cece7390b88f746d2c91d07b Mon Sep 17 00:00:00 2001 From: Tobias Kroenke Date: Wed, 20 Apr 2016 10:36:59 +0200 Subject: Fixed #26520 -- Fixed a regression where SessionBase.pop() didn't return a KeyError. --- docs/topics/http/sessions.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/topics/http') diff --git a/docs/topics/http/sessions.txt b/docs/topics/http/sessions.txt index 5e7bd74d2b..34a1b28b73 100644 --- a/docs/topics/http/sessions.txt +++ b/docs/topics/http/sessions.txt @@ -205,7 +205,7 @@ You can edit it multiple times. Example: ``fav_color = request.session.get('fav_color', 'red')`` - .. method:: pop(key, default=None) + .. method:: pop(key, default=__not_given) Example: ``fav_color = request.session.pop('fav_color', 'blue')`` -- cgit v1.3