Commits

Mike Bayer committed 2f971cb Merge

Merged in dairiki/dogpile.cache/bug.py26-formatstring (pull request #9)

Python 2.6 requires explicit positional argument specification in format strings

  • Participants
  • Parent commits 420f91a, f6b2d3d

Comments (0)

Files changed (1)

File dogpile/cache/backends/redis.py

 
     def get_mutex(self, key):
         if self.distributed_lock:
-            return self.client.lock(u('_lock{}').format(key), self.lock_timeout,
-                                    self.lock_sleep)
+            return self.client.lock(u('_lock{0}').format(key),
+                                    self.lock_timeout, self.lock_sleep)
         else:
             return None