this repo has no description
1#!/usr/bin/env python3
2# Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com)
3"""_warnings provides basic warning filtering support."""
4
5from _builtins import _builtin
6
7
8def warn(message, category=None, stacklevel=1, source=None):
9 _builtin()
10
11
12# TODO(T43357250): These need to be real things, not stubbed out
13filters = []
14defaultaction = "default"
15onceregistry = {}
16
17_filters_version = 1
18
19
20def _filters_mutated():
21 global _filters_version
22 _filters_version += 1