13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
31
class CountedLock(object):
27
32
"""Decorator around a lock that makes it reentrant.
29
34
This can be used with any object that provides a basic Lock interface,
30
35
including LockDirs and OS file locks.
36
38
def __init__(self, real_lock):