~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/http_server.py

  • Committer: Jelmer Vernooij
  • Date: 2012-02-20 12:19:29 UTC
  • mfrom: (6437.23.11 2.5)
  • mto: (6581.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 6582.
  • Revision ID: jelmer@samba.org-20120220121929-7ni2psvjoatm1yp4
Merge bzr/2.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
import re
23
23
import SimpleHTTPServer
24
24
import socket
25
 
import urllib
26
25
import urlparse
27
26
 
 
27
from bzrlib import urlutils
28
28
from bzrlib.tests import test_server
29
29
 
30
30
 
336
336
        """
337
337
        # abandon query parameters
338
338
        path = urlparse.urlparse(path)[2]
339
 
        path = posixpath.normpath(urllib.unquote(path))
 
339
        path = posixpath.normpath(urlutils.unquote(path))
340
340
        path = path.decode('utf-8')
341
341
        words = path.split('/')
342
342
        words = filter(None, words)