~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/progress.py

  • Committer: Martin Pool
  • Date: 2009-06-23 09:17:21 UTC
  • mto: (4712.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4715.
  • Revision ID: mbp@sourcefrog.net-20090623091721-ix4tpdsj2i9g1fxb
Deprecate ProgressTask.note

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
                own_fraction = 0.0
130
130
            return self._parent_task._overall_completion_fraction(own_fraction)
131
131
 
 
132
    @deprecated_method(deprecated_in((1, 17, 0)))
132
133
    def note(self, fmt_string, *args):
133
 
        """Record a note without disrupting the progress bar."""
134
 
        # XXX: shouldn't be here; put it in mutter or the ui instead
 
134
        """Record a note without disrupting the progress bar.
 
135
        
 
136
        Deprecated: use ui_factory.note() instead or bzrlib.trace.  Note that
 
137
        ui_factory.note takes just one string as the argument, not a format
 
138
        string and arguments.
 
139
        """
135
140
        if args:
136
141
            self.ui_factory.note(fmt_string % args)
137
142
        else: