/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: 2018-11-16 10:50:21 UTC
  • mfrom: (7164 work)
  • mto: This revision was merged to the branch mainline in revision 7165.
  • Revision ID: jelmer@jelmer.uk-20181116105021-xl419v2rh4aus1au
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
        """
68
68
        is_tty = self.ui.raw_stdin.isatty()
69
69
        if (os.environ.get('BRZ_TEXTUI_INPUT') != 'line-based' and
70
 
                self.ui.raw_stdin == sys.stdin and is_tty):
 
70
                self.ui.raw_stdin == getattr(sys.stdin, 'buffer', sys.stdin) and is_tty):
71
71
            self.line_based = False
72
72
            self.echo_back = True
73
73
        else:
332
332
        self.clear_term()
333
333
        self.stdout.flush()
334
334
        self.stderr.write(prompt)
 
335
        self.stderr.flush()
335
336
 
336
337
    def report_transport_activity(self, transport, byte_count, direction):
337
338
        """Called by transports as they do IO.