commit | 2e6407d813c09bc1bab8572fd26bdc50d9f0ef4e | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Wed May 07 23:11:54 2008 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Wed May 07 23:11:54 2008 +0000 |
tree | c9114ab579e390bdaee19d837b524aafcc773a62 | |
parent | 33e4a98a3ea14e58a4a1c4a7765b9be33b14a5d9 [diff] |
Practice EAFP, and revert 62787
diff --git a/Lib/warnings.py b/Lib/warnings.py index 132a34d..d9e6e44 100644 --- a/Lib/warnings.py +++ b/Lib/warnings.py
@@ -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)