From 68a4d32212f0506408069c16e878ad926dd9ba05 Mon Sep 17 00:00:00 2001 From: calvin Date: Thu, 16 Feb 2006 19:47:37 +0000 Subject: [PATCH] rename _synchronized in synchronize git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3079 e7d03fd6-7b0d-0410-9947-9c21f3af8025 --- linkcheck/decorators.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linkcheck/decorators.py b/linkcheck/decorators.py index 72a5d998..85c23457 100644 --- a/linkcheck/decorators.py +++ b/linkcheck/decorators.py @@ -95,9 +95,9 @@ def signal_handler (signal_number): return newfunc -def _synchronized (lock, func): +def synchronize (lock, func): """ - Call function with aqcuired lock. + Return synchronized function acquiring the given lock. """ def newfunc (*args, **kwargs): """ @@ -121,7 +121,7 @@ def synchronized (lock): """ A decorator calling a function with aqcuired lock. """ - return lambda func: _synchronized(lock, func) + return lambda func: synchronize(lock, func) def notimplemented (func):