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

  • Committer: Breezy landing bot
  • Author(s): Martin
  • Date: 2018-03-24 17:25:27 UTC
  • mfrom: (6910.3.2 ui_enter)
  • Revision ID: breezy.the.bot@gmail.com-20180324172527-yczskdtrucxhpycd
Further work on sane ui factory interface and fix choose in char mode

Merged from https://code.launchpad.net/~gz/brz/ui_enter/+merge/342043

Show diffs side-by-side

added added

removed removed

Lines of Context:
522
522
    """
523
523
    # this is now always TextUIFactory, which in turn decides whether it
524
524
    # should display progress bars etc
525
 
    from .text import TextUIFactory, _wrap_in_stream, _wrap_out_stream
526
 
    # GZ 2017-05-21: May want to rewrap streams on Python 3 if encoding config
527
 
    if not PY3:
528
 
        stdin = _wrap_in_stream(stdin)
529
 
        stdout = _wrap_out_stream(stdout)
530
 
        stderr = _wrap_out_stream(stderr)
 
525
    from .text import TextUIFactory
531
526
    return TextUIFactory(stdin, stdout, stderr)
532
527
 
533
528