diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-05-07 23:11:54 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-05-07 23:11:54 (GMT) |
commit | 2e6407d813c09bc1bab8572fd26bdc50d9f0ef4e (patch) | |
tree | c9114ab579e390bdaee19d837b524aafcc773a62 | |
parent | 33e4a98a3ea14e58a4a1c4a7765b9be33b14a5d9 (diff) | |
download | cpython-2e6407d813c09bc1bab8572fd26bdc50d9f0ef4e.zip cpython-2e6407d813c09bc1bab8572fd26bdc50d9f0ef4e.tar.gz cpython-2e6407d813c09bc1bab8572fd26bdc50d9f0ef4e.tar.bz2 |
Practice EAFP, and revert 62787
-rw-r--r-- | Lib/warnings.py | 3 |
1 files changed, 0 insertions, 3 deletions
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 @@ def warn_explicit(message, category, filename, lineno, _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) |