Skip to content

Commit acace3d

Browse files
committed
remove deprecation
1 parent 57675ab commit acace3d

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed
Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +0,0 @@
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))

0 commit comments

Comments
 (0)