Lines Matching defs:warnings
26 import sys, os, time, io, re, traceback, warnings, weakref, collections.abc
191 # The following is based on warnings._is_internal_frame. It makes sure that
1504 warnings.warn("The 'warn' method is deprecated, "
1577 ## If we want to mimic the warnings module:
1858 warnings.warn("The 'warn' method is deprecated, "
2136 warnings.warn("The 'warn' function is deprecated, "
2243 delegate to the original warnings implementation of showwarning. Otherwise,
2244 it will call warnings.formatwarning and will log the resulting string to a
2245 warnings logger named "py.warnings" with level logging.WARNING.
2251 s = warnings.formatwarning(message, category, filename, lineno, line)
2252 logger = getLogger("py.warnings")
2261 If capture is true, redirect all warnings to the logging package.
2262 If capture is False, ensure that warnings are not redirected to logging
2268 _warnings_showwarning = warnings.showwarning
2269 warnings.showwarning = _showwarning
2272 warnings.showwarning = _warnings_showwarning