summaryrefslogtreecommitdiffstats
path: root/install/migration/migration.py
diff options
context:
space:
mode:
Diffstat (limited to 'install/migration/migration.py')
-rw-r--r--install/migration/migration.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/install/migration/migration.py b/install/migration/migration.py
index e1823e151..05151e66b 100644
--- a/install/migration/migration.py
+++ b/install/migration/migration.py
@@ -69,7 +69,7 @@ def application(environ, start_response):
return wsgi_redirect(start_response, 'index.html')
form_data = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ)
- if not form_data.has_key('username') or not form_data.has_key('password'):
+ if 'username' not in form_data or 'password' not in form_data:
return wsgi_redirect(start_response, 'invalid.html')
# API object only for configuration, finalize() not needed