fixed: bin/nova-ajax-console-proxy:66:19: W601 .has_key() is deprecated, use 'in'

This commit is contained in:
Christian Berendt
2011-02-25 22:15:51 +01:00
parent 375d66a806
commit 49ee077a20

View File

@@ -63,7 +63,7 @@ class AjaxConsoleProxy(object):
def __call__(self, env, start_response):
try:
if env.has_key('QUERY_STRING'):
if 'QUERY_STRING' in env:
req_url = '%s://%s%s?%s' % (env['wsgi.url_scheme'],
env['HTTP_HOST'],
env['PATH_INFO'],