On Wed, Jun 21, 2006 at 10:34:53PM -0700, Ralf W. Grosse-Kunstleve wrote:
> But this doesn't:
> python -W'ignore:Not importing directory:ImportWarning'
This is a bug. I've filed bug #1510580 and assigned it to Brett. I
think the problem was exposed by the new-style exception change, but
the actual bug is in warnings.py; the check for a legal category is
wrong.
> Also, the magic incantation to silence the warnings would be very helpful
> here:
Good idea; I'll add it.
You could add the following to your site.py or your .pythonrc.py:
warnings.filterwarnings('ignore', 'Not importing directory', ImportWarning)
--amk
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com