This commit is contained in:
@@ -38,7 +38,6 @@ class MetricName(object):
|
||||
# as messages are sent we record the sizes
|
||||
sensor.record(message_size)
|
||||
"""
|
||||
__slots__ = ('_name', '_group', '_description', '_tags', '_hash')
|
||||
|
||||
def __init__(self, name, group, description=None, tags=None):
|
||||
"""
|
||||
@@ -94,7 +93,7 @@ class MetricName(object):
|
||||
return True
|
||||
if other is None:
|
||||
return False
|
||||
return (isinstance(self, type(other)) and
|
||||
return (type(self) == type(other) and
|
||||
self.group == other.group and
|
||||
self.name == other.name and
|
||||
self.tags == other.tags)
|
||||
|
||||
Reference in New Issue
Block a user