diff options
-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) |