~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/lock.py

  • Committer: Jonathan Riddell
  • Date: 2011-09-19 15:59:40 UTC
  • mto: This revision was merged to the branch mainline in revision 6150.
  • Revision ID: jriddell@canonical.com-20110919155940-4q4itcff3jhmhg6u
use .format() instead of % for string formatting where there are multiple formats in one string to allow for translations

Show diffs side-by-side

added added

removed removed

Lines of Context:
544
544
                type_name = 'read'
545
545
            else:
546
546
                type_name = 'write'
547
 
            trace.note(gettext('%r was %s locked again'), self, type_name)
 
547
            trace.note(gettext('{0!r} was {1} locked again'), self, type_name)
548
548
        self._prev_lock = lock_type
549
549