Skip to content

Commit d5546c8

Browse files
[MegaLinter] Apply linters fixes
1 parent c9e07a0 commit d5546c8

File tree

2 files changed

+4
-24
lines changed

2 files changed

+4
-24
lines changed

newrelic/common/object_wrapper.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,7 @@
2626
from newrelic.packages.wrapt import CallableObjectProxy as _CallableObjectProxy
2727
from newrelic.packages.wrapt import FunctionWrapper as _FunctionWrapper
2828
from newrelic.packages.wrapt import ObjectProxy as _ObjectProxy
29-
from newrelic.packages.wrapt import ( # noqa: F401; pylint: disable=W0611
30-
apply_patch,
31-
resolve_path,
32-
wrap_object,
33-
wrap_object_attribute,
34-
)
29+
from newrelic.packages.wrapt import resolve_path, wrap_object # noqa: F401; pylint: disable=W0611
3530

3631
# We previously had our own pure Python implementation of the generic
3732
# object wrapper but we now defer to using the wrapt module as its C

newrelic/core/infinite_tracing_pb2.py

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

2222
# Import appropriate generated pb2 file for protobuf version
2323
if PROTOBUF_VERSION >= (5,):
24-
from newrelic.core.infinite_tracing_v5_pb2 import ( # noqa: F401; pylint: disable=W0611
25-
AttributeValue,
26-
RecordStatus,
27-
Span,
28-
SpanBatch,
29-
)
24+
pass
3025
elif PROTOBUF_VERSION >= (4,):
31-
from newrelic.core.infinite_tracing_v4_pb2 import ( # noqa: F401; pylint: disable=W0611
32-
AttributeValue,
33-
RecordStatus,
34-
Span,
35-
SpanBatch,
36-
)
26+
pass
3727
else:
38-
from newrelic.core.infinite_tracing_v3_pb2 import ( # noqa: F401; pylint: disable=W0611
39-
AttributeValue,
40-
RecordStatus,
41-
Span,
42-
SpanBatch,
43-
)
28+
pass

0 commit comments

Comments
 (0)