~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/progress.py

  • Committer: Robert Collins
  • Date: 2006-03-07 20:57:24 UTC
  • mto: (1594.2.1 integration)
  • mto: This revision was merged to the branch mainline in revision 1596.
  • Revision ID: robertc@robertcollins.net-20060307205724-30be85fb4a3e75f0
Fix identity test in ProgressBarStack.return_pb

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
 
105
105
    def return_pb(self, bar):
106
106
        """Return bar after its been used."""
107
 
        if bar != self._stack[-1]:
 
107
        if bar is not self._stack[-1]:
108
108
            raise errors.MissingProgressBarFinish()
109
109
        self._stack.pop()
110
110