~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/ui/text.py

  • Committer: Robert Collins
  • Date: 2010-05-06 23:54:05 UTC
  • mto: This revision was merged to the branch mainline in revision 5223.
  • Revision ID: robertc@robertcollins.net-20100506235405-wii4elupfhzl3jvy
Add __str__ to the new helper classes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
233
233
 
234
234
    def show_warning(self, msg):
235
235
        self.clear_term()
236
 
        if isinstance(msg, unicode):
237
 
            te = osutils.get_terminal_encoding()
238
 
            msg = msg.encode(te, 'replace')
239
236
        self.stderr.write("bzr: warning: %s\n" % msg)
240
237
 
241
238
    def _progress_updated(self, task):