summaryrefslogtreecommitdiff
path: root/paste/lint.py
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/lint.py
parenta1f64ed3c2d7942ea4b05636cd83eebf8728a183 (diff)
downloadpaste-286427374d678bf82491f97fbc2b422d30791b90.tar.gz
Python 3: Replace "dict.has_key(key)" with "key in dict"
Diffstat (limited to 'paste/lint.py')
-rw-r--r--paste/lint.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/lint.py b/paste/lint.py
index 03b4a60..5505663 100644
--- a/paste/lint.py
+++ b/paste/lint.py
@@ -339,7 +339,7 @@ def check_environ(environ):
"Invalid CONTENT_LENGTH: %r" % environ['CONTENT_LENGTH'])
if not environ.get('SCRIPT_NAME'):
- assert environ.has_key('PATH_INFO'), (
+ assert 'PATH_INFO' in environ, (
"One of SCRIPT_NAME or PATH_INFO are required (PATH_INFO "
"should at least be '/' if SCRIPT_NAME is empty)")
assert environ.get('SCRIPT_NAME') != '/', (