diff svnwrap/svn_swig_wrapper.py @ 238:e8b3ca865f93

Fix a boneheaded mistake I made when I touched up a previous patch.
author Augie Fackler <durin42@gmail.com>
date Wed, 08 Apr 2009 10:28:56 -0500
parents 2969a20e0eef
children d978192f0d63
line wrap: on
line diff
--- a/svnwrap/svn_swig_wrapper.py
+++ b/svnwrap/svn_swig_wrapper.py
@@ -4,8 +4,8 @@ import os
 import shutil
 import sys
 import tempfile
-import hashlib
 import urlparse
+import urllib
 
 from svn import client
 from svn import core
@@ -101,9 +101,9 @@ def parse_url(url):
         userpass, netloc = netloc.split('@')
         if ':' in userpass:
             user, passwd = userpass.split(':')
-            user, passwd = urlparse.unquote(user) or None, urlparse.unquote(passwd) or None
+            user, passwd = urllib.unquote(user) or None, urllib.unquote(passwd) or None
         else:
-            user = urlparse.unquote(userpass) or None
+            user = urllib.unquote(userpass) or None
     url = urlparse.urlunparse((scheme, netloc, path, params, query, fragment))
     return (user, passwd, url)