summaryrefslogtreecommitdiffstats
path: root/keystone/middleware
diff options
context:
space:
mode:
authorZhongyue Luo <zhongyue.nah@intel.com>2012-09-12 10:28:18 +0800
committerZhongyue Luo <zhongyue.nah@intel.com>2012-09-19 11:00:55 +0800
commit4f39aa2b94efaed08f43ef8a01067f89e2d2b192 (patch)
tree5f30a278cc8cd48e18c106514309740447059640 /keystone/middleware
parentf261f718eebdfc60cdf9ce1f227c43f462dc163c (diff)
downloadkeystone-4f39aa2b94efaed08f43ef8a01067f89e2d2b192.tar.gz
keystone-4f39aa2b94efaed08f43ef8a01067f89e2d2b192.tar.xz
keystone-4f39aa2b94efaed08f43ef8a01067f89e2d2b192.zip
Backslash continuation cleanup
Removed unnecessary backslash continuations Added backslash continuation rules to HACKING.rst Change-Id: Id91da5b7e9be4d4587dded95fe7a0415240213ec
Diffstat (limited to 'keystone/middleware')
-rw-r--r--keystone/middleware/auth_token.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/keystone/middleware/auth_token.py b/keystone/middleware/auth_token.py
index 1f565eb3..5d24e251 100644
--- a/keystone/middleware/auth_token.py
+++ b/keystone/middleware/auth_token.py
@@ -242,8 +242,8 @@ class AuthProtocol(object):
self.token_cache_time = int(self._conf_get('token_cache_time'))
self._token_revocation_list = None
self._token_revocation_list_fetched_time = None
- self.token_revocation_list_cache_timeout = \
- datetime.timedelta(seconds=0)
+ cache_timeout = datetime.timedelta(seconds=0)
+ self.token_revocation_list_cache_timeout = cache_timeout
if memcache_servers:
try:
import memcache
@@ -747,8 +747,8 @@ class AuthProtocol(object):
@property
def token_revocation_list(self):
- timeout = self.token_revocation_list_fetched_time +\
- self.token_revocation_list_cache_timeout
+ timeout = (self.token_revocation_list_fetched_time +
+ self.token_revocation_list_cache_timeout)
list_is_current = timeutils.utcnow() < timeout
if list_is_current:
# Load the list from disk if required