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
This commit is contained in:
Alistair Coles 2015-12-17 12:08:45 +00:00
parent 6ade2908cc
commit e15960a5d8

View File

@ -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