| 65 | |
| 66 | |
| 67 | class _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() |
no outgoing calls
no test coverage detected
searching dependent graphs…