Skip to content

Do not use .message attributes in exceptions, deprecated in 2.6 #65

@ghost

Description

Original Launchpad bug 407836: https://bugs.launchpad.net/ipython/+bug/407836
Reported by: fdo.perez (Fernando Perez).

Running the test suite under 2.6 shows:

/home/fperez/usr/lib/python2.6/site-packages/IPython/kernel/error.py:127: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6

The code reads:

class CompositeError(KernelError):
def init(self, message, elist):
Exception.init(self, *(message, elist))
self.message = message
self.elist = elist

I don't want to change that for 0.10 because I'm pretty sure I'll break something. But for 0.11, we should clean this up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions