summaryrefslogtreecommitdiff
path: root/kombu/transport/virtual/scheduling.py
diff options
context:
space:
mode:
authorAsk Solem <ask@celeryproject.org>2012-11-13 15:16:58 +0000
committerAsk Solem <ask@celeryproject.org>2012-11-13 15:16:58 +0000
commit4160f35da03a2c684e678674283f2a08202882f6 (patch)
tree46d6779e4e28dc9238a7ad1d921992698eb934f9 /kombu/transport/virtual/scheduling.py
parenta4a2d483feae07a0e8ec4c3e11ad621139433c3c (diff)
downloadkombu-4160f35da03a2c684e678674283f2a08202882f6.tar.gz
Use more str.format
Diffstat (limited to 'kombu/transport/virtual/scheduling.py')
-rw-r--r--kombu/transport/virtual/scheduling.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kombu/transport/virtual/scheduling.py b/kombu/transport/virtual/scheduling.py
index 9fc3f8f0..7304f67b 100644
--- a/kombu/transport/virtual/scheduling.py
+++ b/kombu/transport/virtual/scheduling.py
@@ -48,5 +48,5 @@ class FairCycle(object):
pass
def __repr__(self):
- return '<FairCycle: %r/%r %r>' % (self.pos, len(self.resources),
- self.resources, )
+ return '<FairCycle: {self.pos}/{size} {self.resources}>'.format(
+ self=self, size=len(self.resources))