From e15960a5d86e00a7d420edc4af034b27da0af8fd Mon Sep 17 00:00:00 2001 From: Alistair Coles Date: Thu, 17 Dec 2015 12:08:45 +0000 Subject: [PATCH] Fix incorrect kwarg in auth middleware example When calling memcache_client.set(), timeout was deprecated and is now removed as a keyword arg, use time instead. Change-Id: Iedbd5b064853ef2b386963246f639fbcd3931cd3 --- doc/source/development_auth.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/development_auth.rst b/doc/source/development_auth.rst index bb00ca8fc7..50f21fb251 100644 --- a/doc/source/development_auth.rst +++ b/doc/source/development_auth.rst @@ -375,7 +375,7 @@ folks a start on their own code if they want to use repoze.what:: expiration = float(resp.getheader('x-auth-ttl')) user = resp.getheader('x-auth-user') memcache_client.set(key, (time(), expiration, user), - timeout=expiration) + time=expiration) return user return None