/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/ui/__init__.py

  • Committer: Andrew Bennetts
  • Date: 2011-06-02 07:25:33 UTC
  • mfrom: (5952 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5955.
  • Revision ID: andrew.bennetts@canonical.com-20110602072533-v0pe1ivh27cp0pd8
MergeĀ lp:bzr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
204
204
        """
205
205
        return self.get_boolean(prompt % prompt_kwargs)
206
206
 
207
 
    def get_password(self, prompt='', **kwargs):
 
207
    def get_password(self, prompt=u'', **kwargs):
208
208
        """Prompt the user for a password.
209
209
 
210
 
        :param prompt: The prompt to present the user
 
210
        :param prompt: The prompt to present the user (must be unicode)
211
211
        :param kwargs: Arguments which will be expanded into the prompt.
212
212
                       This lets front ends display different things if
213
213
                       they so choose.
319
319
        """Get a boolean question answered from the user.
320
320
 
321
321
        :param prompt: a message to prompt the user with. Should be a single
322
 
        line without terminating \n.
 
322
            line without terminating \\n.
323
323
        :return: True or False for y/yes or n/no.
324
324
        """
325
325
        raise NotImplementedError(self.get_boolean)
328
328
        """Get an integer from the user.
329
329
 
330
330
        :param prompt: a message to prompt the user with. Could be a multi-line
331
 
            prompt but without a terminating \n.
 
331
            prompt but without a terminating \\n.
332
332
 
333
333
        :return: A signed integer.
334
334
        """
483
483
    def get_integer(self, prompt):
484
484
        return self.responses.pop(0)
485
485
 
486
 
    def get_password(self, prompt='', **kwargs):
 
486
    def get_password(self, prompt=u'', **kwargs):
487
487
        return self.responses.pop(0)
488
488
 
489
489
    def get_username(self, prompt, **kwargs):