~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/util/configobj/configobj.py

Fix python-2.6 BaseException 'message' attribute deprecation.

* bzrlib/util/configobj/configobj.py:
(ConfigObjError.__init__): 'message' attribute has been
deprecated. Reported upstream with patch, hopefully next upgrade
will include it. Watch for conflicts though.

* bzrlib/errors.py:
(BzrError._format): 'message' attribute has been deprecated.

Show diffs side-by-side

added added

removed removed

Lines of Context:
250
250
    This is the base class for all errors that ConfigObj raises.
251
251
    It is a subclass of SyntaxError.
252
252
    """
253
 
    def __init__(self, message='', line_number=None, line=''):
 
253
    def __init__(self, msg='', line_number=None, line=''):
254
254
        self.line = line
255
255
        self.line_number = line_number
256
 
        self.message = message
257
 
        SyntaxError.__init__(self, message)
 
256
        self.msg = msg
 
257
        SyntaxError.__init__(self, msg)
258
258
 
259
259
 
260
260
class NestingError(ConfigObjError):