aboutsummaryrefslogtreecommitdiff
path: root/catapult/common/py_trace_event/py_trace_event/trace_event_impl/meta_class.py
diff options
context:
space:
mode:
Diffstat (limited to 'catapult/common/py_trace_event/py_trace_event/trace_event_impl/meta_class.py')
-rw-r--r--catapult/common/py_trace_event/py_trace_event/trace_event_impl/meta_class.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/catapult/common/py_trace_event/py_trace_event/trace_event_impl/meta_class.py b/catapult/common/py_trace_event/py_trace_event/trace_event_impl/meta_class.py
index 4ede79bd..7aaa3faf 100644
--- a/catapult/common/py_trace_event/py_trace_event/trace_event_impl/meta_class.py
+++ b/catapult/common/py_trace_event/py_trace_event/trace_event_impl/meta_class.py
@@ -10,7 +10,8 @@ from py_trace_event.trace_event_impl import decorators
class TracedMetaClass(type):
def __new__(cls, name, bases, attrs):
for attr_name, attr_value in attrs.iteritems():
- if isinstance(attr_value, types.FunctionType):
+ if (not attr_name.startswith('_') and
+ isinstance(attr_value, types.FunctionType)):
attrs[attr_name] = decorators.traced(attr_value)
return super(TracedMetaClass, cls).__new__(cls, name, bases, attrs)