summaryrefslogtreecommitdiff
path: root/kafka/metrics/stats/sensor.py
diff options
context:
space:
mode:
authorJeff Widman <jeff@jeffwidman.com>2018-11-13 11:57:45 -0800
committerJeff Widman <jeff@jeffwidman.com>2018-11-17 16:38:01 -0800
commit8eb26b6420a358dc10af7e58d270fae690e07fdf (patch)
tree2d1b7f3e0744e80b7757182c0e978ccd20814d52 /kafka/metrics/stats/sensor.py
parent7bd6b5da6d402565f25fce9e710be26b2d4cc125 (diff)
downloadkafka-python-8eb26b6420a358dc10af7e58d270fae690e07fdf.tar.gz
Be explicit with tuples for %s formattinguse-explicit-tuples-for-strings
Fix #1633
Diffstat (limited to 'kafka/metrics/stats/sensor.py')
-rw-r--r--kafka/metrics/stats/sensor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kafka/metrics/stats/sensor.py b/kafka/metrics/stats/sensor.py
index 73a4665..571723f 100644
--- a/kafka/metrics/stats/sensor.py
+++ b/kafka/metrics/stats/sensor.py
@@ -35,7 +35,7 @@ class Sensor(object):
"""Validate that this sensor doesn't end up referencing itself."""
if self in sensors:
raise ValueError('Circular dependency in sensors: %s is its own'
- 'parent.' % self.name)
+ 'parent.' % (self.name,))
sensors.add(self)
for parent in self._parents:
parent._check_forest(sensors)