[Python-checkins] r62842 - python/trunk/Lib/warnings.py
benjamin.peterson
python-checkins at python.org
Thu May 8 01:11:55 CEST 2008
Author: benjamin.peterson
Date: Thu May 8 01:11:54 2008
New Revision: 62842
Log:
Practice ETAF, and revert 62787
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)
More information about the Python-checkins
mailing list