~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/config.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-05-27 10:48:00 UTC
  • mfrom: (5923.1.3 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20110527104800-fvcjlygvqloos6kl
(vila) Require prompts to always be unicode (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1803
1803
            if ask:
1804
1804
                if prompt is None:
1805
1805
                    # Create a default prompt suitable for most cases
1806
 
                    prompt = scheme.upper() + ' %(host)s username'
 
1806
                    prompt = u'%s' % (scheme.upper(),) + u' %(host)s username'
1807
1807
                # Special handling for optional fields in the prompt
1808
1808
                if port is not None:
1809
1809
                    prompt_host = '%s:%d' % (host, port)
1847
1847
        if password is None:
1848
1848
            if prompt is None:
1849
1849
                # Create a default prompt suitable for most cases
1850
 
                prompt = '%s' % scheme.upper() + ' %(user)s@%(host)s password'
 
1850
                prompt = u'%s' % scheme.upper() + u' %(user)s@%(host)s password'
1851
1851
            # Special handling for optional fields in the prompt
1852
1852
            if port is not None:
1853
1853
                prompt_host = '%s:%d' % (host, port)