MCPcopy Index your code
hub / github.com/python/cpython / _GlobalContext

Class _GlobalContext

Lib/_py_warnings.py:67–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65
66
67class _GlobalContext(_Context):
68 def __init__(self):
69 self.log = None
70
71 @property
72 def _filters(self):
73 # Since there is quite a lot of code that assigns to
74 # warnings.filters, this needs to return the current value of
75 # the module global.
76 try:
77 return _wm.filters
78 except AttributeError:
79 # 'filters' global was deleted. Do we need to actually handle this case?
80 return []
81
82
83_global_context = _GlobalContext()

Callers 1

_py_warnings.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…