[Python-checkins] r62842 - python/trunk/Lib/warnings.py
Brett Cannon
brett at python.org
Thu May 8 04:51:09 CEST 2008
On Thu, May 8, 2008 at 1:11 AM, benjamin.peterson
<python-checkins at python.org> wrote:
> Author: benjamin.peterson
> Date: Thu May 8 01:11:54 2008
> New Revision: 62842
>
> Log:
> Practice ETAF, and revert 62787
>
I think Benjamin meant to say EAFP here. =)
-Brett
>
> Modified:
> python/trunk/Lib/warnings.py
>
> Modified: python/trunk/Lib/warnings.py
> ==============================================================================
> --- python/trunk/Lib/warnings.py (original)
> +++ python/trunk/Lib/warnings.py Thu May 8 01:11:54 2008
> @@ -278,9 +278,6 @@
> _show_warning(message, category, filename, lineno)
> else:
> warn(showwarning_msg, DeprecationWarning)
> - if not callable(showwarning):
> - raise TypeError("warnings.showwarning() must be set to a "
> - "function or method")
> # Print message and context
> showwarning(message, category, filename, lineno)
>
> _______________________________________________
> Python-checkins mailing list
> Python-checkins at python.org
> http://mail.python.org/mailman/listinfo/python-checkins
>
More information about the Python-checkins
mailing list