diff options
author | Cyril Roelandt <cyril.roelandt@enovance.com> | 2014-03-18 12:47:59 +0100 |
---|---|---|
committer | Cyril Roelandt <cyril.roelandt@enovance.com> | 2014-03-18 12:47:59 +0100 |
commit | 286427374d678bf82491f97fbc2b422d30791b90 (patch) | |
tree | ebfc9659744d92ba3a992d6b40e8aaa47f5e1988 /paste/lint.py | |
parent | a1f64ed3c2d7942ea4b05636cd83eebf8728a183 (diff) | |
download | paste-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.py | 2 |
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') != '/', ( |