Skip to content

Commit

Permalink
refine variable naming based on PR feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
matteius committed Dec 29, 2019
1 parent cddf0f5 commit 9b8bf9a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions kombu/transport/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -773,14 +773,14 @@ def _size(self, queue):
queue_name = self._queue_for_priority(queue, pri)
pipe = pipe.llen(queue_name)
sizes = pipe.execute()
size = sum(size for size in sizes
if isinstance(size, numbers.Integral))
size = sum(s for s in sizes
if isinstance(s, numbers.Integral))
return size

def _queue_for_priority(self, queue, pri):
pri = self.priority(pri)
if pri:
queue_args = (queue, self.sep, pri)
queue_priority = self.priority(pri)
if queue_priority:
queue_args = (queue, self.sep, queue_priority)
else:
queue_args = (queue, '', '')
priority_queue_name = '%s%s%s' % queue_args
Expand Down

0 comments on commit 9b8bf9a

Please sign in to comment.