Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/AnonR/smanonr..../lib64/python3....
File: warnings.py
# enabled and tracking where the coroutine was created, the warning will
[500] Fix | Delete
# contain that traceback. This does mean that if they have *both*
[501] Fix | Delete
# coroutine origin tracking *and* tracemalloc enabled, they'll get two
[502] Fix | Delete
# partially-redundant tracebacks. If we wanted to be clever we could
[503] Fix | Delete
# probably detect this case and avoid it, but for now we don't bother.
[504] Fix | Delete
warn(msg, category=RuntimeWarning, stacklevel=2, source=coro)
[505] Fix | Delete
[506] Fix | Delete
[507] Fix | Delete
# filters contains a sequence of filter 5-tuples
[508] Fix | Delete
# The components of the 5-tuple are:
[509] Fix | Delete
# - an action: error, ignore, always, default, module, or once
[510] Fix | Delete
# - a compiled regex that must match the warning message
[511] Fix | Delete
# - a class representing the warning category
[512] Fix | Delete
# - a compiled regex that must match the module that is being warned
[513] Fix | Delete
# - a line number for the line being warning, or 0 to mean any line
[514] Fix | Delete
# If either if the compiled regexs are None, match anything.
[515] Fix | Delete
try:
[516] Fix | Delete
from _warnings import (filters, _defaultaction, _onceregistry,
[517] Fix | Delete
warn, warn_explicit, _filters_mutated)
[518] Fix | Delete
defaultaction = _defaultaction
[519] Fix | Delete
onceregistry = _onceregistry
[520] Fix | Delete
_warnings_defaults = True
[521] Fix | Delete
except ImportError:
[522] Fix | Delete
filters = []
[523] Fix | Delete
defaultaction = "default"
[524] Fix | Delete
onceregistry = {}
[525] Fix | Delete
[526] Fix | Delete
_filters_version = 1
[527] Fix | Delete
[528] Fix | Delete
def _filters_mutated():
[529] Fix | Delete
global _filters_version
[530] Fix | Delete
_filters_version += 1
[531] Fix | Delete
[532] Fix | Delete
_warnings_defaults = False
[533] Fix | Delete
[534] Fix | Delete
[535] Fix | Delete
# Module initialization
[536] Fix | Delete
_processoptions(sys.warnoptions)
[537] Fix | Delete
if not _warnings_defaults:
[538] Fix | Delete
# Several warning categories are ignored by default in regular builds
[539] Fix | Delete
if not hasattr(sys, 'gettotalrefcount'):
[540] Fix | Delete
filterwarnings("default", category=DeprecationWarning,
[541] Fix | Delete
module="__main__", append=1)
[542] Fix | Delete
simplefilter("ignore", category=DeprecationWarning, append=1)
[543] Fix | Delete
simplefilter("ignore", category=PendingDeprecationWarning, append=1)
[544] Fix | Delete
simplefilter("ignore", category=ImportWarning, append=1)
[545] Fix | Delete
simplefilter("ignore", category=ResourceWarning, append=1)
[546] Fix | Delete
[547] Fix | Delete
del _warnings_defaults
[548] Fix | Delete
[549] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function