/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/config.py

  • Committer: Vincent Ladeuil
  • Date: 2011-05-27 10:02:53 UTC
  • mto: This revision was merged to the branch mainline in revision 5925.
  • Revision ID: v.ladeuil+lp@free.fr-20110527100253-4j9vm9tgqnpfcu8f
Even more unicode prompts fixes revealed by pqm.

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)