~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_ftp_transport.py

  • Committer: Jelmer Vernooij
  • Date: 2011-12-19 10:58:39 UTC
  • mfrom: (6383 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6386.
  • Revision ID: jelmer@canonical.com-20111219105839-uji05ck4rkm1mj4j
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
import ftplib
18
18
import getpass
19
 
import urllib
20
19
 
21
20
from bzrlib import (
22
21
    config,
24
23
    tests,
25
24
    transport,
26
25
    ui,
 
26
    urlutils,
27
27
    )
28
28
 
29
29
from bzrlib.transport import ftp
85
85
        parsed_url = transport.ConnectedTransport._split_url(base)
86
86
        new_url = parsed_url.clone()
87
87
        new_url.user = self.user
88
 
        new_url.quoted_user = urllib.quote(self.user)
 
88
        new_url.quoted_user = urlutils.quote(self.user)
89
89
        new_url.password = self.password
90
 
        new_url.quoted_password = urllib.quote(self.password)
 
90
        new_url.quoted_password = urlutils.quote(self.password)
91
91
        return str(new_url)
92
92
 
93
93
    def test_no_prompt_for_username(self):