~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/ui/text.py

  • Committer: Martin Pool
  • Date: 2009-12-08 09:17:34 UTC
  • mto: This revision was merged to the branch mainline in revision 4880.
  • Revision ID: mbp@sourcefrog.net-20091208091734-1ktawydv0whimork
TextUIOutputStream must have an .encoding

Show diffs side-by-side

added added

removed removed

Lines of Context:
404
404
    def __init__(self, ui_factory, wrapped_stream):
405
405
        self.ui_factory = ui_factory
406
406
        self.wrapped_stream = wrapped_stream
 
407
        # this does no transcoding, but it must expose the underlying encoding
 
408
        # because some callers need to know what can be written - see for
 
409
        # example unescape_for_display.
 
410
        self.encoding = wrapped_stream.encoding
407
411
 
408
412
    def flush(self):
409
413
        self.ui_factory.clear_term()