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

  • Committer: Jelmer Vernooij
  • Date: 2020-02-07 02:14:30 UTC
  • mto: This revision was merged to the branch mainline in revision 7492.
  • Revision ID: jelmer@jelmer.uk-20200207021430-m49iq3x4x8xlib6x
Drop python2 support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    osutils,
41
41
    trace,
42
42
    )
43
 
from ..sixish import (
44
 
    text_type,
45
 
    )
46
43
from . import (
47
44
    NullProgressView,
48
45
    UIFactory,
325
322
        :param kwargs: Dictionary of arguments to insert into the prompt,
326
323
            to allow UIs to reformat the prompt.
327
324
        """
328
 
        if not isinstance(prompt, text_type):
 
325
        if not isinstance(prompt, str):
329
326
            raise ValueError("prompt %r not a unicode string" % prompt)
330
327
        if kwargs:
331
328
            # See <https://launchpad.net/bugs/365891>