~jelmer/brz/fix-c-extensions

« back to all changes in this revision

Viewing changes to breezy/ui/text.py

  • Committer: Jelmer Vernooij
  • Date: 2017-07-23 22:06:41 UTC
  • mfrom: (6738 trunk)
  • mto: This revision was merged to the branch mainline in revision 6739.
  • Revision ID: jelmer@jelmer.uk-20170723220641-69eczax9bmv8d6kk
Merge trunk, address review comments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
    osutils,
40
40
    trace,
41
41
    )
 
42
from ..sixish import (
 
43
    text_type,
 
44
    )
42
45
from . import (
43
46
    NullProgressView,
44
47
    UIFactory,
304
307
        :param kwargs: Dictionary of arguments to insert into the prompt,
305
308
            to allow UIs to reformat the prompt.
306
309
        """
307
 
        if not isinstance(prompt, unicode):
 
310
        if not isinstance(prompt, text_type):
308
311
            raise ValueError("prompt %r not a unicode string" % prompt)
309
312
        if kwargs:
310
313
            # See <https://launchpad.net/bugs/365891>