summaryrefslogtreecommitdiff
path: root/paste/auth
diff options
context:
space:
mode:
authorCyril Roelandt <cyril.roelandt@enovance.com>2014-03-18 12:47:59 +0100
committerCyril Roelandt <cyril.roelandt@enovance.com>2014-03-18 12:47:59 +0100
commit286427374d678bf82491f97fbc2b422d30791b90 (patch)
treeebfc9659744d92ba3a992d6b40e8aaa47f5e1988 /paste/auth
parenta1f64ed3c2d7942ea4b05636cd83eebf8728a183 (diff)
downloadpaste-286427374d678bf82491f97fbc2b422d30791b90.tar.gz
Python 3: Replace "dict.has_key(key)" with "key in dict"
Diffstat (limited to 'paste/auth')
-rw-r--r--paste/auth/cookie.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/auth/cookie.py b/paste/auth/cookie.py
index 2c60a05..3593804 100644
--- a/paste/auth/cookie.py
+++ b/paste/auth/cookie.py
@@ -258,7 +258,7 @@ class AuthCookieHandler(object):
raise AssertionError("AuthCookie already installed!")
scanlist = self.environ_class(self, self.scanlist)
jar = get_cookies(environ)
- if jar.has_key(self.cookie_name):
+ if self.cookie_name in jar:
content = self.signer.auth(jar[self.cookie_name].value)
if content:
for pair in content.split(";"):