/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/errors.py

  • Committer: Brian M. Carlson
  • Date: 2006-04-27 01:23:24 UTC
  • mto: (1913.2.1 bzr.mbp.python25)
  • mto: This revision was merged to the branch mainline in revision 2030.
  • Revision ID: sandals@crustytoothpaste.ath.cx-20060427012324-d645b696893446d6
Change the BzrNewError super invocation to a direct call, so it works with 2.4.

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
 
104
104
    def __init__(self, *args, **kwds):
105
105
        # XXX: Use the underlying BzrError to always generate the args attribute
106
 
        # if it doesn't exist. --bmc, 20060426
107
 
        super(BzrError, self).__init__(*args)
 
106
        # if it doesn't exist.  We can't use super here, because exceptions are
 
107
        # old-style classes in python2.4 (but new in 2.5).  --bmc, 20060426
 
108
        BzrError.__init__(self, *args)
108
109
        for key, value in kwds.items():
109
110
            setattr(self, key, value)
110
111