From 1d14c470fdfff39c3b78b5fe2ee83eeb655c1b59 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Wed, 3 Jun 2015 12:58:50 -0700 Subject: [PATCH] Expose top level try_lock --- ChangeLog | 1 + fasteners/__init__.py | 1 + 2 files changed, 2 insertions(+) diff --git a/ChangeLog b/ChangeLog index ffcf95e..2bb168f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,7 @@ lock a method using a found attribute (a lock object or list of lock objects) in the instance the method is attached to. + - Expose top level `try_lock` function. 0.6: - Allow the sleep function to be provided (so that various alternatives other than time.sleep can diff --git a/fasteners/__init__.py b/fasteners/__init__.py index 2425d65..c84a78f 100644 --- a/fasteners/__init__.py +++ b/fasteners/__init__.py @@ -22,6 +22,7 @@ from __future__ import absolute_import from fasteners.lock import locked # noqa from fasteners.lock import read_locked # noqa +from fasteners.lock import try_lock # noqa from fasteners.lock import write_locked # noqa from fasteners.lock import ReaderWriterLock # noqa