Commits

Christian Boos committed a4ad79a

0.10.4dev: ported r5162 (''fix #5067'')

Comments (0)

Files changed (1)

 from trac.config import Option, IntOption
 from trac.core import *
 from trac.db.pool import ConnectionPool
-from trac.util.text import unicode_unquote, unicode_passwd
+from trac.util.text import unicode_passwd
 
 
 def get_column_names(cursor):
         else:
             password = None
         if user:
-            user = unicode_unquote(user)
+            user = urllib.unquote(user)
         if password:
-            password = unicode_passwd(unicode_unquote(password))
+            password = unicode_passwd(urllib.unquote(password))
     else:
         user = password = None
     if host and host.find(':') != -1:
         qs = qs.split('&')
         for param in qs:
             name, value = param.split('=', 1)
-            value = unicode_unquote(value)
+            value = urllib.unquote(value)
             params[name] = value
 
     args = zip(('user', 'password', 'host', 'port', 'path', 'params'),