summaryrefslogtreecommitdiff
path: root/kafka/consumer/simple.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/consumer/simple.py
parent7bd6b5da6d402565f25fce9e710be26b2d4cc125 (diff)
downloadkafka-python-use-explicit-tuples-for-strings.tar.gz
Be explicit with tuples for %s formattinguse-explicit-tuples-for-strings
Fix #1633
Diffstat (limited to 'kafka/consumer/simple.py')
-rw-r--r--kafka/consumer/simple.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kafka/consumer/simple.py b/kafka/consumer/simple.py
index b60a586..a6a64a5 100644
--- a/kafka/consumer/simple.py
+++ b/kafka/consumer/simple.py
@@ -247,7 +247,7 @@ class SimpleConsumer(Consumer):
self.offsets[resp.partition] = \
resp.offsets[0] + deltas[resp.partition]
else:
- raise ValueError('Unexpected value for `whence`, %d' % whence)
+ raise ValueError('Unexpected value for `whence`, %d' % (whence,))
# Reset queue and fetch offsets since they are invalid
self.fetch_offsets = self.offsets.copy()