From b93757ec38fe17ace829ce41a4d91c21b75258c9 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Thu, 22 May 2014 23:04:47 -0700 Subject: [PATCH] Add kwarg check_pending argument to fake lock To ensure we retain the same API for the fake lock class make sure we have the is_writer function take in the same kwarg as the base class. Change-Id: Id39deeb8cc944dad05a36bd48993f11f2f11118e --- taskflow/utils/lock_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taskflow/utils/lock_utils.py b/taskflow/utils/lock_utils.py index 7f6a91bf..942e27bb 100644 --- a/taskflow/utils/lock_utils.py +++ b/taskflow/utils/lock_utils.py @@ -262,7 +262,7 @@ class DummyReaderWriterLock(_ReaderWriterLockBase): def is_reader(self): return False - def is_writer(self): + def is_writer(self, check_pending=True): return False @property