os.environ.has_key(key) -> key in os.environ

This commit is contained in:
T. Joseph Carter 2015-11-08 17:57:29 -08:00
parent 876991f11f
commit 1796676df1

View File

@ -32,7 +32,7 @@ except ImportError:
# Differing from the shell script in that we explicitly strip the / here
if os.environ.has_key('A2SERVER_SCRIPT_URL'):
if 'A2SERVER_SCRIPT_URL' in os.environ:
scriptURL = os.environ['A2SERVER_SCRIPT_URL']
# Strip trailing slash
if scriptURL.endsWith('/'):