~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-03-13 21:14:39 UTC
  • mfrom: (2321.3.10 selftest.win32-0.16)
  • Revision ID: pqm@pqm.ubuntu.com-20070313211439-de065881d219e0dd
(bialix) fixes for selftest on win32

Show diffs side-by-side

added added

removed removed

Lines of Context:
647
647
 
648
648
class LockError(BzrError):
649
649
 
650
 
    _fmt = "Lock error: %(message)s"
 
650
    _fmt = "Lock error: %(msg)s"
651
651
 
652
652
    internal_error = True
653
653
 
657
657
    #
658
658
    # New code should prefer to raise specific subclasses
659
659
    def __init__(self, message):
660
 
        self.message = message
 
660
        # Python 2.5 uses a slot for StandardError.message,
 
661
        # so use a different variable name
 
662
        # so it is exposed in self.__dict__
 
663
        self.msg = message
661
664
 
662
665
 
663
666
class LockActive(LockError):