/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: Canonical.com Patch Queue Manager
  • Date: 2010-05-14 08:27:57 UTC
  • mfrom: (5223.2.1 newtesttools)
  • Revision ID: pqm@pqm.ubuntu.com-20100514082757-jbg7ncvtca1bjdtu
(lifeless) Make our selftest for dangling-lock detection in selftests more
 robust (fixes use with testtools 0.9.3). (Robert Collins)

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')
236
239
        self.stderr.write("bzr: warning: %s\n" % msg)
237
240
 
238
241
    def _progress_updated(self, task):