Change matplotlib.use error to a warning?

The matplotlib.use() function was always a no-op after importing pylab,
and there were occasional questions about it on the mailing list. It was
changed fairly recently to raise an error in this case. Bug #1855454
points out that this is not backward compatible: an application that
calls use() too late didn't do anything before the change, but now gets
stopped with a traceback. I suggest changing the error to a warning,
which I think would still deliver the message but would be compatible
with (broken) legacy code. What do you think?

http://sourceforge.net/tracker/index.php?func=detail&aid=1855454&group_id=80706&atid=560720

···

--
Jouni

Jouni K. Sepp�nen wrote:

The matplotlib.use() function was always a no-op after importing pylab,
and there were occasional questions about it on the mailing list. It was
changed fairly recently to raise an error in this case. Bug #1855454
points out that this is not backward compatible: an application that
calls use() too late didn't do anything before the change, but now gets
stopped with a traceback. I suggest changing the error to a warning,
which I think would still deliver the message but would be compatible
with (broken) legacy code. What do you think?

http://sourceforge.net/tracker/index.php?func=detail&aid=1855454&group_id=80706&atid=560720

Good point. I probably went overboard when making the original change in October, so I have now changed it to a warning as you suggest.

Eric