From af1e38a97a70c3b668f4ae87559d114fdbbd5604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=C3=A7kin=20Alan?= Date: Thu, 14 Apr 2016 11:53:47 +0530 Subject: [PATCH] [Python 3 compability] Fixed the issue introduced by the Grant Wizard, which fixes a issue with the Python 3. --- web/pgadmin/tools/grant_wizard/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/pgadmin/tools/grant_wizard/__init__.py b/web/pgadmin/tools/grant_wizard/__init__.py index f53b979f6..4002e4e0e 100644 --- a/web/pgadmin/tools/grant_wizard/__init__.py +++ b/web/pgadmin/tools/grant_wizard/__init__.py @@ -20,7 +20,10 @@ from pgadmin.browser.server_groups.servers.utils import parse_priv_to_db from pgadmin.utils import PgAdminModule from flask import Response, url_for from flask.ext.security import login_required -from urllib import unquote +try: + from urllib import unquote +except: + from urllib.parse import unquote from pgadmin.utils.ajax import precondition_required from functools import wraps from pgadmin.utils.preferences import Preferences