From 86ff28fac8fdb81386ae0b84f352e3b2e8f5a396 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Tue, 1 Apr 2014 08:45:08 +0200 Subject: migration: fix import of wsgiref.util https://fedorahosted.org/freeipa/ticket/4293 Reviewed-By: Tomas Babej --- install/migration/migration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'install/migration') diff --git a/install/migration/migration.py b/install/migration/migration.py index 27e23a59f..acc1ee48d 100644 --- a/install/migration/migration.py +++ b/install/migration/migration.py @@ -23,7 +23,7 @@ Password migration script import cgi import errno import glob -import wsgiref +from wsgiref.util import request_uri from ipapython.ipa_log_manager import root_logger from ipapython.ipautil import get_ipa_basedn @@ -37,7 +37,7 @@ def wsgi_redirect(start_response, loc): return [] def get_ui_url(environ): - full_url = wsgiref.util.request_uri(environ) + full_url = request_uri(environ) index = full_url.rfind(environ.get('SCRIPT_NAME','')) if index == -1: raise ValueError('Cannot strip the script URL from full URL "%s"' % full_url) -- cgit