From d260459269a27e505a8af968c5fbd5f4f3fb78c7 Mon Sep 17 00:00:00 2001 From: Ask Solem Date: Wed, 11 Sep 2013 21:45:09 +0100 Subject: [PATCH] LamportClock: can now set Lock class --- kombu/clocks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kombu/clocks.py b/kombu/clocks.py index 8d85bf21..ee06d750 100644 --- a/kombu/clocks.py +++ b/kombu/clocks.py @@ -54,7 +54,7 @@ class LamportClock(object): #: The clocks current value. value = 0 - def __init__(self, initial_value=0): + def __init__(self, initial_value=0, Lock=Lock): self.value = initial_value self.mutex = Lock()