File tree Expand file tree Collapse file tree 1 file changed +0
-35
lines changed
ddtrace/internal/settings Expand file tree Collapse file tree 1 file changed +0
-35
lines changed Original file line number Diff line number Diff line change 1- from ddtrace .internal .utils .deprecations import DDTraceDeprecationWarning
2- from ddtrace .vendor .debtcollector import deprecate
3-
4-
5- def __getattr__ (name ):
6- if name in set (
7- [
8- "ConfigException" ,
9- "HttpConfig" ,
10- "Hooks" ,
11- "IntegrationConfig" ,
12- ]
13- ):
14- deprecate (
15- ("%s.%s is deprecated" % (__name__ , name )),
16- removal_version = "4.0.0" , # TODO: update this to the correct version
17- category = DDTraceDeprecationWarning ,
18- )
19- if name == "ConfigException" :
20- from ddtrace .internal .settings .exceptions import ConfigException
21-
22- return ConfigException
23- elif name == "HttpConfig" :
24- from .http import HttpConfig
25-
26- return HttpConfig
27- elif name == "Hooks" :
28- from .._hooks import Hooks
29-
30- return Hooks
31- elif name == "IntegrationConfig" :
32- from .integration import IntegrationConfig
33-
34- return IntegrationConfig
35- raise AttributeError ("'%s' has no attribute '%s'" % (__name__ , name ))
You can’t perform that action at this time.
0 commit comments