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

  • Committer: Martin Pool
  • Date: 2009-12-09 05:33:28 UTC
  • mto: This revision was merged to the branch mainline in revision 4880.
  • Revision ID: mbp@sourcefrog.net-20091209053328-sznvh1wqcbmy51fj
TextUIOutputStream can cope if the wrapped stream doesn't have a .encoding

Show diffs side-by-side

added added

removed removed

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