make "source" argument to interlocks.acquire mandatory

This commit is contained in:
Eric Blade 2010-11-28 20:04:32 -05:00
parent e5782dd736
commit 7b1143a6ff

View File

@ -45,7 +45,7 @@ class InterProcessLockBase:
def acquire_impl(self, wait): abstract def acquire_impl(self, wait): abstract
def acquire(self, wait=False, retry_time=1, source=None): def acquire(self, source, wait=False, retry_time=1):
if source == None: if source == None:
source="Unknown" source="Unknown"
if self._has_lock: # make sure 2nd acquire in same process fails if self._has_lock: # make sure 2nd acquire in same process fails