Skip to content

Commit 4c2bf0f

Browse files
committed
Use wrapt.BaseObjectProxy
1 parent 1c874dc commit 4c2bf0f

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

newrelic/common/object_wrapper.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,16 @@
2121

2222
import inspect
2323

24+
from newrelic.packages.wrapt import ( # noqa: F401
25+
BaseObjectProxy,
26+
apply_patch,
27+
resolve_path,
28+
wrap_object,
29+
wrap_object_attribute,
30+
)
2431
from newrelic.packages.wrapt import BoundFunctionWrapper as _BoundFunctionWrapper
2532
from newrelic.packages.wrapt import CallableObjectProxy as _CallableObjectProxy
2633
from newrelic.packages.wrapt import FunctionWrapper as _FunctionWrapper
27-
from newrelic.packages.wrapt import ObjectProxy as _ObjectProxy
28-
from newrelic.packages.wrapt import apply_patch, resolve_path, wrap_object, wrap_object_attribute # noqa: F401
2934

3035
# We previously had our own pure Python implementation of the generic
3136
# object wrapper but we now defer to using the wrapt module as its C
@@ -44,7 +49,7 @@
4449
# ObjectProxy or FunctionWrapper should be used going forward.
4550

4651

47-
class ObjectProxy(_ObjectProxy):
52+
class ObjectProxy(BaseObjectProxy):
4853
"""
4954
This class provides method overrides for all object wrappers used by the
5055
agent. These methods allow attributes to be defined with the special prefix

0 commit comments

Comments
 (0)