From 6bb5017f6ac54594c025ad622123bb255753c6ff Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Sat, 6 Jun 2015 23:42:20 -0700 Subject: [PATCH] Link r/w lock to the actual class --- fasteners/lock.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fasteners/lock.py b/fasteners/lock.py index fe95181..6c84e85 100644 --- a/fasteners/lock.py +++ b/fasteners/lock.py @@ -40,7 +40,8 @@ def read_locked(*args, **kwargs): NOTE(harlowja): if no attribute name is provided then by default the attribute named '_lock' is looked for (this attribute is expected to be - the rw-lock object) in the instance object this decorator is attached to. + a :py:class:`.ReaderWriterLock`) in the instance object this decorator + is attached to. """ def decorator(f): @@ -70,7 +71,8 @@ def write_locked(*args, **kwargs): NOTE(harlowja): if no attribute name is provided then by default the attribute named '_lock' is looked for (this attribute is expected to be - the rw-lock object) in the instance object this decorator is attached to. + a :py:class:`.ReaderWriterLock` object) in the instance object this + decorator is attached to. """ def decorator(f):