mirror of
https://github.com/RasppleII/a2server.git
synced 2025-01-11 11:31:21 +00:00
os.environ.has_key(key) -> key in os.environ
This commit is contained in:
parent
876991f11f
commit
1796676df1
@ -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('/'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user